1
0
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:
David A. Mellis
2011-04-17 13:58:14 -04:00
parent b6ff5d58df
commit 9f412a2628
10 changed files with 60 additions and 49 deletions

View File

@ -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
}