mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 12:51:24 +01:00
Bump up I2C speed
Speed was 100kHz (default). Max for OLEDis 400kHz.
This commit is contained in:
parent
b36db29edb
commit
1c1168f433
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user