Minor refactoring.

This commit is contained in:
2023-10-31 16:18:07 +01:00
parent 72c857c858
commit c35a8501a7

View File

@@ -1,66 +1,20 @@
#ifndef OWNFONT_H #ifndef OWN_FONT_H
#define OWNFONT_H #define OWN_FONT_H
uint8_t numbers_font[10][5] = { {0b00000111, #include <Arduino.h>
0b00000101,
0b00000101,
0b00000101,
0b00000111},
{0b00000001,
0b00000001,
0b00000001,
0b00000001,
0b00000001},
{0b00000111,
0b00000001,
0b00000111,
0b00000100,
0b00000111},
{0b00000111,
0b00000001,
0b00000111,
0b00000001,
0b00000111},
{0b00000101,
0b00000101,
0b00000111,
0b00000001,
0b00000001},
{0b00000111,
0b00000100,
0b00000111,
0b00000001,
0b00000111},
{0b00000111,
0b00000100,
0b00000111,
0b00000101,
0b00000111},
{0b00000111,
0b00000001,
0b00000001,
0b00000001,
0b00000001},
{0b00000111,
0b00000101,
0b00000111,
0b00000101,
0b00000111},
{0b00000111,
0b00000101,
0b00000111,
0b00000001,
0b00000111}};
uint8_t chars_font[2][5] = { {0b00000010, uint8_t numbers_font[10][5] = {{0b00000111, 0b00000101, 0b00000101, 0b00000101, 0b00000111},
0b00000010, {0b00000001, 0b00000001, 0b00000001, 0b00000001, 0b00000001},
0b00000010, {0b00000111, 0b00000001, 0b00000111, 0b00000100, 0b00000111},
0b00000010, {0b00000111, 0b00000001, 0b00000111, 0b00000001, 0b00000111},
0b00000010}, {0b00000101, 0b00000101, 0b00000111, 0b00000001, 0b00000001},
{0b00000111, {0b00000111, 0b00000100, 0b00000111, 0b00000001, 0b00000111},
0b00000101, {0b00000111, 0b00000100, 0b00000111, 0b00000101, 0b00000111},
0b00000111, {0b00000111, 0b00000001, 0b00000001, 0b00000001, 0b00000001},
0b00000100, {0b00000111, 0b00000101, 0b00000111, 0b00000101, 0b00000111},
0b00000100}}; {0b00000111, 0b00000101, 0b00000111, 0b00000001, 0b00000111}};
#endif /* OWNFONT_H */ uint8_t chars_font[2][5] = {{0b00000010, 0b00000010, 0b00000010, 0b00000010, 0b00000010},
{0b00000111, 0b00000101, 0b00000111, 0b00000100, 0b00000100}};
#endif /* OWN_FONT_H */