From 33c7d0edae0c4281694c2a10a0be67ea423da0c7 Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Fri, 15 Dec 2023 21:31:34 +0000 Subject: [PATCH] =?UTF-8?q?Arduino:=20Use=20400kHz=20clock=20fo=20I=C2=B2C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ! --- Arduino/SendCart/SendCart.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/Arduino/SendCart/SendCart.ino b/Arduino/SendCart/SendCart.ino index a98aa6d..0b3639a 100644 --- a/Arduino/SendCart/SendCart.ino +++ b/Arduino/SendCart/SendCart.ino @@ -23,6 +23,7 @@ void setup() { Serial.begin(115200); pinMode(LED_BUILTIN, OUTPUT); Wire.begin(); + Wire.setClock(400000); } void loop() {