B4R Question TM1637Display 7-Segment LED

Status
Not open for further replies.

ralfkammel

Member
Licensed User
Hi,

I tried to produce a library for the TM1637 7-Segment display form avishorp@gmail.com

No success.

Does anyone have a functioning library or some code for me?
 

Attachments

  • 57.JPG
    57.JPG
    65.2 KB · Views: 267

ralfkammel

Member
Licensed User
Thanks, Erel,

but it does not work. see example...please

B4X:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 300
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public Serial1 As Serial
    Public Display As TM1637Display
    Public i As Int
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    Display.Initialize(2,3)
    Delay(1000)
    Display.Brightness=6
    For i=1 To 99
        Display.ShowNumberDec(i)
        Delay(1000)
        Log(i)
    Next
End Sub
 
Upvote 0

ralfkammel

Member
Licensed User
Hi again,

I ran the c example and it worked.

Library is OK in C!

I can see the logs running.

So i have to wait for someone with the module, many thanks Erel for the help.

Greetings from rainy Germany!
 
Last edited:
Upvote 0
Status
Not open for further replies.
Top