Hello!
I'm using the serial TM1637 7-segments display, which are controlled as described in this video
How to use TM1637 4 digits seven segment display with Arduino - YouTube, and in this datasheet
www.mcielectronics.cl/website_MCI/static/documents/Datasheet_TM1637.pdf (note p. 8).
Further, I have 4 buttons. And now, I want to control the display as follows:
- If the first button is pressed one time, one segment of each number should light up.
- If the first button is pressed a second time, two segments of each number should light up.
- If the second button is pressed once, one segment of each number should light up.
- If the second button is pressed twice, two segments of each number should light up.
And so on...
None of the segments activated by a second press needs to be the same as the one activated firstly. But all states are predefined, no varies from time to time.
I understand that some kind of AND/&&-based implementation of the different char arrays are needed. For example, when some keys have been pressed some amount of times, their segment contributions will overlap.
The purpose of the implementation is a kind of puzzle, where the competitor has to find out how to press the different keys to achieve true numbers on the screen.
Any suggestions of how a proper implementation of this could be done is much apprechiated!