TM1628 sample code anyone?


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default TM1628 sample code anyone?

    Hello.
    There are thousands of interesting LED modules sold with these controllers.
    like this one for example.
    https://item.taobao.com/item.htm?id=643277470788

    Arduino do has library, but we?

  2. #2
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: TM1628 sample code anyone?

    I took the code available here: TM1638 LED Display Driver/Controller (picbasic.co.uk) , for TM1638, and modded it a bit (added support for 8 and 9), so now it works for that TM1628 module, link for which I've posted, too. All what it does, counts from 0 to 99, but looking at code, you can guess how to use it on your demand.

    Use configs and other variables from the post above (or make your own) and replace the MAIN part in above code with this:

    Code:
    FOR I=0 TO 99
    LOW STB
    LOOKUP I DIG 1,[$3F,$06,$5B,$4F,$66,$6D,$7D,$07,$7f,$6F],J 
    SHIFTOUT SDA, SCK, 0, [$C0+0,J]
    HIGH STB
    LOW STB
    LOOKUP I DIG 0,[$3F,$06,$5B,$4F,$66,$6D,$7D,$07,$7f,$6F],j 
    SHIFTOUT SDA, SCK, 0, [$C0+2,J]
    HIGH STB
    PAUSE 100
    NEXT
    If anyone can suggest, how can I use lookup only once (if possible), that would be great.

Similar Threads

  1. Please help with sample code on 12f675
    By critix in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th June 2013, 04:08
  2. please who can help me for sample code
    By jasem700 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd February 2009, 21:41
  3. USBJADEM sample code
    By SterlingY in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th March 2007, 01:57
  4. sample code for M25P32
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th January 2007, 03:37
  5. Sample code for pwm
    By Md.Shah in forum mel PIC BASIC
    Replies: 1
    Last Post: - 10th October 2006, 17:59

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts