arduino-uno-r4-wifi/digitaluhr/led-matrix.h

62 lines
886 B
C
Raw Normal View History

2024-02-07 12:30:42 +00:00
#define NO_OF_ROWS 8
#define NO_OF_COLS 12
typedef struct position {
byte row;
byte col;
} position;
const byte digits[][3][5] = {
{//0
{1, 1, 1, 1, 1},
{1, 0, 0, 0, 1},
{1, 1, 1, 1, 1}
},
{//1
{0, 0, 0, 0, 1},
{1, 1, 1, 1, 1},
{0, 1, 0, 0, 1}
},
{//2
{1, 1, 1, 0, 1},
{1, 0, 1, 0, 1},
{1, 0, 1, 1, 1}
},
{//3
{1, 1, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 0, 1, 0, 1}
},
{//4
{1, 1, 1, 1, 1},
{0, 0, 1, 0, 0},
{1, 1, 1, 0, 0}
},
{//5
{1, 0, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 1, 1, 0, 1}
},
{//6
{1, 0, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 1, 1, 1, 1}
},
{//7
{1, 1, 0, 0, 0},
{1, 0, 1, 0, 0},
{1, 0, 0, 1, 1}
},
{//8
{1, 1, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 1, 1, 1, 1}
},
{//9
{1, 1, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 1, 1, 0, 1}
}
};