From 075604842e26bb7d33f76e5bf8aeec53549e3d55 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Wed, 18 Jul 2018 19:56:25 +0200 Subject: [PATCH] set back i2c speed to 400khz --- lib/U8g2_ID942-tweaked/src/clib/u8x8_d_ssd1306_128x64_noname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/U8g2_ID942-tweaked/src/clib/u8x8_d_ssd1306_128x64_noname.c b/lib/U8g2_ID942-tweaked/src/clib/u8x8_d_ssd1306_128x64_noname.c index 9b102c86..09b16ab5 100644 --- a/lib/U8g2_ID942-tweaked/src/clib/u8x8_d_ssd1306_128x64_noname.c +++ b/lib/U8g2_ID942-tweaked/src/clib/u8x8_d_ssd1306_128x64_noname.c @@ -298,7 +298,7 @@ static const u8x8_display_info_t u8x8_ssd1306_128x64_noname_display_info = /* sck_pulse_width_ns = */ 50, /* SSD1306: 20ns, but cycle time is 100ns, so use 100/2, AVR: below 70: 8 MHz, >= 70 --> 4MHz clock */ /* sck_clock_hz = */ 8000000UL, /* since Arduino 1.6.0, the SPI bus speed in Hz. Should be 1000000000/sck_pulse_width_ns */ /* spi_mode = */ 0, /* active high, rising edge */ - /* ==> i2c_bus_clock_100kHz = */ 1, + /* ==> i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 40, /* write_pulse_width_ns = */ 150, /* SSD1306: cycle time is 300ns, so use 300/2 = 150 */ /* tile_width = */ 16,