B4R Question TM1637Display 7-Segment LED

Discussion in 'B4R Questions' started by ralfkammel, May 21, 2016.

Thread Status:
Not open for further replies.
  1. ralfkammel

    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?
     

    Attached Files:

    • 57.JPG
      57.JPG
      File size:
      65.2 KB
      Views:
      131
  2. Erel

    Erel Administrator Staff Member Licensed User

    Is there any open source library that you are trying to wrap?
     
  3. ralfkammel

    ralfkammel Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    ralfkammel likes this.
  5. ralfkammel

    ralfkammel Member Licensed User

    Thanks, Erel,

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

    Code:
    #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
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    I don't have this module so I cannot test it. In which way doesn't it work? Do you see the logs?

    Are you able to run the C examples from Arduino IDE? Do they work?
     
  7. ralfkammel

    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: May 22, 2016
  8. Erel

    Erel Administrator Staff Member Licensed User

    I've fixed an error. Please try the attached library.
     

    Attached Files:

  9. ralfkammel

    ralfkammel Member Licensed User

    I am so sorry Erel,

    the display stays dark, even with the new library.
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Don't be sorry :)
     
  11. Kevin

    Kevin Well-Known Member Licensed User

    Sorry for reviving such an old thread, but is there any update on this? I have some smaller 4 digit LEDs that work fine with the TM1637 library but I'd like to use larger ones that also appear to have decimal points (though whether they are functional or not is debatable).

    Supposedly this library works with them:
    https://github.com/bremme/arduino-tm1637/blob/master/src/SevenSegmentTM1637.cpp
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    You shouldn't post in this thread. The rTM1637 library was introduced after this thread was created.
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice