It's Holiday Sale Weekend at Adafruit - use the code ADATY to get 15% off items storewide! Some restrictions apply.
0

.56 7 segment display
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

.56 7 segment display

by W8wer on Sat Oct 23, 2021 11:28 am

Two questions actually:
I’m building a countdown display timer, separating the time into individual digits and using matrix.writeDigitNum to display them. Is there a way to blank the leading digit when the time is less than 10 minutes (9:59 rather than 09:59).

Is there a complete list of available commands for this display somewhere?

W8wer
 
Posts: 2
Joined: Sat Oct 23, 2021 11:22 am

Re: .56 7 segment display

by dastels on Sat Oct 23, 2021 11:42 am

The source code is the canonical reference.
CircuitPython: See the Seg7x4 class starting at line 303 https://github.com/adafruit/Adafruit_CircuitPython_HT16K33
C++: See the Adafruit_7segment class starting at line 215 https://github.com/adafruit/Adafruit_LED_Backpack/blob/master/Adafruit_LEDBackpack.h

To turn off all segments (thus being able to use a leading space rather than leading 0) use writeDigitRaw(location,bitmask) (in C++) or set_digit_raw(self, index, bitmask) (in CircuitPython)
You would use a bitmask of 0x00.

Dave

dastels
 
Posts: 7870
Joined: Tue Oct 20, 2015 3:22 pm

Re: .56 7 segment display

by W8wer on Sat Oct 23, 2021 1:46 pm

Thanks, both answers very helpful
Bill

W8wer
 
Posts: 2
Joined: Sat Oct 23, 2021 11:22 am

Please be positive and constructive with your questions and comments.