уменьшена скорость serial для корректной работы с платой start

This commit is contained in:
klassents 2024-12-24 09:21:06 +07:00
parent c3e729a36e
commit 0bc9489100
2 changed files with 2 additions and 3 deletions

View File

@ -42,13 +42,12 @@ uint8_t masterGetData(uint8_t *buf, uint8_t dataSize)
void setup() void setup()
{ {
Serial.begin(115200); Serial.begin(57600);
while (!Serial); while (!Serial);
Serial.println("I2C master start"); Serial.println("I2C master start");
// Initialize the device on the I2C bus as a master // Initialize the device on the I2C bus as a master
Wire.begin(); Wire.begin();
Wire.setClock(400000);
} }
void loop() void loop()

View File

@ -73,7 +73,7 @@ void receiveEvent(int bytesNum)
// ----------------------------------------- // // ----------------------------------------- //
void setup() void setup()
{ {
Serial.begin(115200); Serial.begin(57600);
while (!Serial); while (!Serial);
Serial.println("I2C slave start"); Serial.println("I2C slave start");