update ss_oled to 3.1.0
This commit is contained in:
1 parent
ff44e4935f
commit
a2274cda2c
2 files changed
+11
-2
No files matched your search
+9
-1
@@ -56,7 +56,12 @@ static const char TAG[] = __FILE__;
|
||||
const char *printmonth[] = {"xxx", "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
|
||||
uint8_t DisplayIsOn = 0;
|
||||
uint8_t displaybuf[DISPLAY_WIDTH * DISPLAY_HEIGHT / 8] = {0};
|
||||
|
||||
#ifdef USE_BACKBUFFER
|
||||
static uint8_t displaybuf[DISPLAY_WIDTH * DISPLAY_HEIGHT / 8] = {0};
|
||||
#else
|
||||
static uint8_t *displaybuf = NULL;
|
||||
#endif
|
||||
|
||||
QRCode qrcode;
|
||||
|
||||
@@ -82,6 +87,9 @@ void init_display(bool verbose) {
|
||||
oledInit(OLED_128x64, true, false, -1, -1, 400000L);
|
||||
#endif
|
||||
|
||||
// set display buffer
|
||||
oledSetBackBuffer(displaybuf);
|
||||
|
||||
// clear display
|
||||
oledSetContrast(DISPLAYCONTRAST);
|
||||
oledFill(0, 1);
|
||||
|
||||
Reference in new issue
Block a user