From 43e0d87dbd52d3eb4cbdc863ffff98a8682d16d3 Mon Sep 17 00:00:00 2001 From: Pawel Spychalski Date: Wed, 3 Jan 2018 11:48:01 +0100 Subject: [PATCH] I2C speed bumped to 400kHz --- crossbow.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crossbow.ino b/crossbow.ino index 4e7b640..b1c68d3 100644 --- a/crossbow.ino +++ b/crossbow.ino @@ -180,6 +180,9 @@ void setup(void) TCCR1B |= (1 << CS11); //set timer1 to increment every 0,5 us or 1us on 8MHz #ifdef FEATURE_TX_OLED + + Wire.setClock(400000); + display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3C (for the 128x32) display.setTextSize(1); display.setTextColor(WHITE);