slow down i2c because it didn't work at 1MHz ATMega

This commit is contained in:
2020-03-19 12:46:54 +03:00
parent c48567645d
commit 5a9496e222
2 changed files with 3 additions and 1 deletions

View File

@@ -112,10 +112,11 @@ void execCommand(Command cmd) {
}
void setup() {
Serial.begin(115200);
Serial.begin(9600);
Wire.begin(8);
Wire.onReceive(receiveEvent);
Wire.onRequest(requestEvent);
Wire.setClock(10000);
Serial.println("Hello!");
eggStepperRPM = servoStepperRPM = curRPM;
pinMode(A0, OUTPUT);