mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
slow down i2c because it didn't work at 1MHz ATMega
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
Wire.begin(12, 13);
|
||||
Wire.setClock(10000);
|
||||
power.enable12v();
|
||||
configManager.load();
|
||||
wifiManager.init();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user