mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Changing Wire API to inherit from Stream.
Renaming send() to write(), receive() to read(), etc.
This commit is contained in:
@ -24,7 +24,7 @@ void loop()
|
||||
|
||||
while(Wire.available()) // slave may send less than requested
|
||||
{
|
||||
char c = Wire.receive(); // receive a byte as character
|
||||
char c = Wire.read(); // receive a byte as character
|
||||
Serial.print(c); // print the character
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user