1
0
Fork 0

Arduino: Use 400kHz clock fo I²C

The EEPROM in the cartridges support 'Fast I²C' at 400kHz.
Testing it out, it seems to work fine despite the high pull-ups,
so update the Arduino code to enjoy the 4x speed-up !
This commit is contained in:
Teo-CD 2023-12-15 21:31:34 +00:00
parent 54f73ccaf2
commit 33c7d0edae

View file

@ -23,6 +23,7 @@ void setup() {
Serial.begin(115200); Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT); pinMode(LED_BUILTIN, OUTPUT);
Wire.begin(); Wire.begin();
Wire.setClock(400000);
} }
void loop() { void loop() {