-
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
Halt when useing RP2040 with TM1652 #42
Comments
Hello @YeWuChen , Some time ago I encountered stability issues with the TM1640 on RP2040. (See the short video clips in those posts). Unfortunately even after using a better scope, I wasn't able to determine the cause. I'm definitely no expert on the RP2040. Perhaps your findings can help to implement a solution of some sort. From what I recall I've not done any testing using hardware serial on the RP2040. Also I have not tested all TM16xx chips in my collection with the RP2040. I think I need to do some more testing on the RP2040 to see what issues I can reproduce and if possible fix. Unfortunately my work on the TM16xx library is limited to the spare time I have available. Because of that it may take quite some time before I can respond with my findings. I will keep this issue open until I've done so. BTW. which example code did you use that halted the RP2040? |
Hello @maxint-rd , With best wishes. |
FIY: During recent work on developing a generic class to support untested TM16xx chips, I used the RP2040 to test things. I fixed the halting issue for RP2040 (and also some other MCUs) by introducing a begin() method with implicit initialization that replaces blocking time related calls in the constructor. You can find that fix in this repository branch. It is expected that in due time that fix will be merged into the main branch. |
FYI: the TM1652 has been updated and code from the other branch was incorporated. The halt should be fixed so I'll remove the bug label. If you wan't to test please let me know your findings. Still not using hardware serial though and haven't tested with RP2040 yet. |
Thank you very much for your efforts! However, my board is not with me right now, so I have no way to test the updated library on the RP2040 for the time being, I will test it once I get a chance. Thank you very much again! |
I tried using RP2040 to drive TM1652, but the example would crash and Windows would prompt an unrecognized USB devices.
But I can use hardware serial to driven TM1652, just use 'Serial2.begin(19200,SERIAL_8O2);' and set the TX pin to hardware serial pin, just
pay attention to the initialization, need to add a about 6ms of delay between the cleardisplay and send command.
Arduino IDE version: 1.8.19
RP2040 version: 3.6.0 by Earle F. Philhower, III
And there's my code:
my_TM1652.zip
It would be great if this library could be used hardware serial with all the good features of TM16XX library!
The text was updated successfully, but these errors were encountered: