main.cpp: reduced i2c display speed (test)

This commit is contained in:
Klaus K Wilting 2018-04-04 23:29:03 +02:00
parent c71ff050cf
commit ba76646f21

View File

@ -358,6 +358,7 @@ void init_display(const char *Productname, const char *Version) {
u8x8.begin();
u8x8.setFont(u8x8_font_chroma48medium8_r);
#ifdef HAS_DISPLAY
Wire.setClock(100000); // experimental: reduce I2C bus speed to avoid display errors (must be done after begin)
uint8_t buf[32];
u8x8.clear();
u8x8.setFlipMode(0);