-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USE TM1624 7x11, what should I do? #54
Comments
Hello, the latest release of the TM16xx library has no explicit support for the TM1624 (yet). In issue #24 you can find another fellow with a TM1624, but at that time I couldn't offer much code to help. Now maybe I can... :-) But first, can you tell me a bit more about your project? Are you using a bare chip or is it part of a existing module? What kind of LED display is attached? Is it Common Cathode or Common Anode? What MCU will you use? Some time ago I was able to add the TM1624 to my collection, Since then I have worked on a generic class that aims to support almost all TM16xx LED driver chips. That generic class intends to allow adventurous developers to experiment with chips that I may not have tested myself. It contains definitions for all TM16xx chips and generic code supporting different type of connections, various display memory layouts and key scanning methods. At the moment that added class has not been thoroughly tested, but I've tested it to work for my TM1624. I have published my work in progress in this repository branch. The class is named TM16xxIC and it is used in similar fashion as the regular TM16xx classes. The generic TM16xxIC class uses a chip specific define in the constructor to specify the chip characteristics. In this post you can see how I used it for another chip. In your sketch you need to include TM16xxIC.h, which has the chip definition I don't have a ready made example for using this class yet, nor proper documentation. The main examples I use for testing are TM16xxDisplay_Print and TM16xx_setSegments / TM16xx_setSegmentsDebug. If I remember well, I believeI tested my TM1624 chip with a 4-digit 7-segment CA display. BTW. To support common anode SEG/GRD configuration that branch also has a TM16xxICanode class. Those generic classes have a slightly larger footprint, but still may be useful to support the various other chips in the TM16xx family. |
Thank you for the information you provided earlier. I will be testing with the Arduino UNO board after the National Day holiday. My current hardware setup:
Issue:
Thanks again for your help! I will share the results after testing. |
Hello, unfortunately I have no test setup for the STM32F103C8T6 myself, but if I recall well other people did test that environment successfully with the library. I'm looking forward to read about your findings. If the LEDs are displaying something, I suggest you to try the TM16xx_setSegments example first to check if the segment order is according expectations. Replace the |
Thanks. I wrote a simple port of tm1624, and it works normally on the stm32f103c8. The underlying principle is based on the library you provided, so there's actually no difference. |
Excellent. Good you got it to work for you. Perhaps in the future I'll do some blue pill testing. At the moment I'm into the CH32 family that has many commonalities. |
Update: TM1624.h was added to offer support for the TM1624 via the TM16xxIC class. I have tested the TM1624 myself on the CH32V003 in 14x4 mode with an 15-segment alphanumeric LED display. The TM16xxIC class was merged in the main branch, and the experimental branch will be removed at a later moment. |
Cool! Thanks for your updating. |
USE TM1624 7x11, what should I do?
The text was updated successfully, but these errors were encountered: