From ba76646f21fbbc5d5199bc734b26c2d4a2ac2809 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Wed, 4 Apr 2018 23:29:03 +0200 Subject: [PATCH] main.cpp: reduced i2c display speed (test) --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f0183945..dbde51ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -357,7 +357,8 @@ void DisplayKey(const uint8_t * key, uint8_t len, bool lsb) { void init_display(const char *Productname, const char *Version) { u8x8.begin(); u8x8.setFont(u8x8_font_chroma48medium8_r); -#ifdef HAS_DISPLAY +#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);