Browse Source

make sure u8g2 uses 16bit

main
Hendrik Langer 6 years ago
parent
commit
70db3cfbed
  1. 5
      src/screen.cpp
  2. 1
      src/screen.h

5
src/screen.cpp

@ -290,10 +290,11 @@ void MainScreen::draw() {
// repeated drawing of the scrolling text...
titleStr_offset-=4; // scroll by one pixel
titleStr_offset-=2; // scroll by one pixel
if ( (u8g2_uint_t)titleStr_offset < (u8g2_uint_t)-width )
titleStr_offset = 0; // start over again
} else {
} else { // don't scroll
u8g2.drawUTF8((u8g2.getDisplayWidth()-width)/2, 54, titleStr);
}
uint32_t buffFill = mp3.getBuffFill();

1
src/screen.h

@ -15,6 +15,7 @@
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
#define U8G2_16BIT
#include "main.h"
#include "mp3.h"

Loading…
Cancel
Save