You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying a master_reader/slave_sender on two gigas with Core 4.2.4 gives NACK 2 out of 3 times.
To test it:
1 giga with
#include<Wire.h>voidsetup() {
Wire1.begin(); // join I2C bus (address optional for master)
Serial.begin(9600); // start serial for output
}
voidloop() {
Wire1.requestFrom(16, 6); // request 6 bytes from slave device #8while (Wire1.available()) { // slave may send less than requested
Serial.write(Wire1.read()); // print the character
}
Serial.println();
delay(500);
}
1 giga with:
#include<Wire.h>voidsetup() {
Wire1.begin(16); // join I2C bus with address #8
Wire1.onRequest(requestEvent); // register event
}
voidloop() {
delay(1);
}
// function that executes whenever data is requested by master// this function is registered as an event, see setup()voidrequestEvent() {
Wire1.write("hello "); // respond with message of 6 bytes// as expected by master
}
Trying a master_reader/slave_sender on two gigas with Core 4.2.4 gives NACK 2 out of 3 times.
To test it:
1 giga with
1 giga with:
SCL1 to SCL1
SDA1 to SDA1
GND to GND
Works perfectly with core 4.2.1
@facchinm @pennam
The text was updated successfully, but these errors were encountered: