esp-open-rtos/examples/max7219_8x8/digit_font.h
Trent Rand 22f84a15c3 Add support for 64-bit image drawing with MAX7219 8x8 LED Matrix
The MAX7219 driver has been extended to add support for bitmap drawing
on an 8-by-8 LED matrix panel. Consumers can specify the targeted chip,
which corresponds to a LED matrix panel, and provide a 64-bit image
buffer specifying the pixels which should illuminate.
2020-11-28 21:32:40 -05:00

95 lines
914 B
C

const uint8_t DIGITS[][8] = {
{
0x0,
0x3c,
0x66,
0x6e,
0x76,
0x66,
0x66,
0x3c
}, {
0x0,
0x18,
0x18,
0x38,
0x18,
0x18,
0x18,
0x7e
}, {
0x0,
0x3c,
0x66,
0x6,
0xc,
0x30,
0x60,
0x7e
}, {
0x0,
0x3c,
0x66,
0x6,
0x1c,
0x6,
0x66,
0x3c
}, {
0x0,
0xc,
0x1c,
0x2c,
0x4c,
0x7e,
0xc,
0xc
}, {
0x0,
0x7e,
0x60,
0x7c,
0x6,
0x6,
0x66,
0x3c
}, {
0x0,
0x3c,
0x66,
0x60,
0x7c,
0x66,
0x66,
0x3c
}, {
0x0,
0x7e,
0x66,
0xc,
0xc,
0x18,
0x18,
0x18
}, {
0x0,
0x3c,
0x66,
0x66,
0x3c,
0x66,
0x66,
0x3c
}, {
0x0,
0x3c,
0x66,
0x66,
0x3e,
0x6,
0x66,
0x3c
}
};
const int DIGITS_LEN = sizeof(DIGITS)/8;