уменьшена скорость serial для корректной работы с платой start
This commit is contained in:
parent
c3e729a36e
commit
0bc9489100
@ -42,13 +42,12 @@ uint8_t masterGetData(uint8_t *buf, uint8_t dataSize)
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
Serial.begin(57600);
|
||||
while (!Serial);
|
||||
Serial.println("I2C master start");
|
||||
|
||||
// Initialize the device on the I2C bus as a master
|
||||
Wire.begin();
|
||||
Wire.setClock(400000);
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
||||
@ -73,7 +73,7 @@ void receiveEvent(int bytesNum)
|
||||
// ----------------------------------------- //
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
Serial.begin(57600);
|
||||
while (!Serial);
|
||||
Serial.println("I2C slave start");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user