The superb TM1637 display modules are now everywhere with 6 digits. as in - https://www.aliexpress.com/item/1005001 ... 1802vvix7J
Plentiful, loads of colour options, very well made and cheap. They also work on 3.3 OR 5V with no changes.
They DO work with the 1637 routine built into AM even though it is supposedly 4 digits maximum. Using a 6 digit module the only small issue is that the order of the displays is reversed on each 3 digit block as in the following where the number 123456 was sent and 321654 is displayed. It would be really great if you can make this work this @Corjan . They are really neat displays. I can of course reverse the digits in AM in LUA prior to sending but it would be excellent if it wasn't needed. ALL the 6 digit displays being sold are of this type. They use a single TM1637 and they use 2 x 3 digit displays to form the block of 6.
Pretty please ?
Sample code and actual output
Code: Select all
-- Bind to the Arduino UNO on channel A.
-- hw_id 1 = TM1637 data pin (ARDUINO_UNO_A_D4 in this example)
-- hw_id 2 = TM1637 clock pin (ARDUINO_UNO_A_D5 in this example)
display_chr_id = hw_chr_display_add("TM1637", 6, "ARDUINO_UNO_A_D4", "ARDUINO_UNO_A_D5")
hw_chr_display_set_brightness(display_chr_id, 0.5)
-- Set text "123456"
hw_chr_display_set_text(display_chr_id, "123456")
-- Actual value displayed is 321654
-- Notes: Display module link - https://www.aliexpress.com/item/1005001570737985.html?spm=a2g0o.order_list.0.0.21ef1802vvix7J
-- Joe (@JPH)
Changing the code in AM to -
Code: Select all
hw_chr_display_set_text(display_chr_id, "321654")
Decimal points work as they should on the numerical value as it is written so no problems there at all.
Thanks
Joe