use bigger display

This commit is contained in:
Alessandro Mauri 2026-05-22 19:10:45 +02:00
parent c3ffd3bbf8
commit 81a7faa6f6
3 changed files with 13 additions and 5 deletions

View file

@ -3,10 +3,20 @@
#include <u8g2.h>
// #define SSD1306_128X32 1
#define SSD1312_96X16 1
#define SSD1306_128X32 1
// #define SSD1312_96X16 1
#define PIN_DISP_RST PA7 // display reset
#ifdef SSD1306_128X32
#define x_off 0
#define y_off 0
#endif
#ifdef SSD1312_96X16
#define x_off 0
#define y_off 8
#endif
u8g2_t* display_init(void);
const char* i16toa(int16_t value);
const char* u16toa(uint16_t value);