#include <TM1637Display.h>
// Pin definitions for TM1637 7-segment display
#define CLK 2
#define DIO 3
TM1637Display display(CLK, DIO);
void setup() {
display.setBrightness(0x0f); // Set brightness (0x0f is maximum)
// Custom segment map to display "REDY"
uint8_t data[] = {
0x50, // 'R' - segments A, E, G, C
0x79, // 'E' - segments A, D, E, F, G
0x5E, // 'D' - segments A, B, C, D, E
0x6E // 'Y' - segments B, C, D, F, G
};
display.setSegments(data); // Display "REDY" on the 7-segment display
}
void loop() {
// Nothing to do in the loop since "ON" is displayed statically
}
/*
you can also add the word ON by replacing REDY with the following...
// Custom segment map to display "ON"
uint8_t data[] = {
0x3F, // 'O' - segments A, B, C, D, E, F
0x54, // 'N' - segments A, B, C, E, G
0x00, // Blank
0x00 // Blank
};
*/