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:
parent
54f73ccaf2
commit
33c7d0edae
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue