TM1637 Scrolling text

Post and discuss new components that you have created.
Post Reply
bercioiu
Posts: 18
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 9:21 pm
Location: Romania
Has thanked: 13 times
Been thanked: 5 times

Flowcode v10 TM1637 Scrolling text

Post by bercioiu »

I made a Flowcode component for scrolling text on a TM1637 display (4-digit, 7-segment). Non-blocking, 7-segment font, number conversion, custom characters, adjustable speed. Built on top of the standard TM1637 component (uses its ShowSegments internally).
The text is converted into an array of raw segment bytes (segBuf[]) with blank padding at both ends. ScrollStep() writes a 4-byte sliding window of that array to the display via ShowSegments, advancing one position every ScrollSpeed ms. A timer interrupt (through Tick()) increments a millisecond counter, so the timing is non-blocking — the rest of your program keeps running between steps. The Buf* macros only touch the buffer; the only hardware contact is inside ScrollStep, so the engine is portable to other displays by swapping just the output call.
Enjoy!
Attachments
test_component_scroll.fcfx
(14.12 KiB) Downloaded 71 times
TM1637_Scroll.fcpx
(3.3 KiB) Downloaded 65 times
TM1637 Scroll Reference.pdf
(131.58 KiB) Downloaded 59 times

Post Reply