diff --git a/LCD_OLED.h b/LCD_OLED.h index 0655c98..780bd4d 100644 --- a/LCD_OLED.h +++ b/LCD_OLED.h @@ -30,6 +30,7 @@ SSD1306AsciiWire LCDDriver; LCDDisplay::LCDDisplay() { // Scan for device on 0x3c and 0x3d. Wire.begin(); + Wire.setClock(400000); // This should really be done centrally somewhere!! for (byte address=0x3c; address<=0x3d; address++) { Wire.beginTransmission(address); byte error = Wire.endTransmission(true); diff --git a/mySetup.h b/mySetup.h new file mode 100644 index 0000000..4cdde71 --- /dev/null +++ b/mySetup.h @@ -0,0 +1,8 @@ +//SETUP("D WIFI ON"); +//SETUP("D WIT ON"); +Wire.begin(); +Wire.setClock(400000); + +LCD(3,F("192.168.4.1")); +LCD(4,F(__DATE__)); +LCD(5,F(__TIME__));