1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Modifying examples to use Serial.write() instead of Serial.print(BYTE).

This commit is contained in:
David A. Mellis
2011-02-26 13:57:41 -05:00
parent d15e9aa98a
commit 3eae87adc9
7 changed files with 15 additions and 15 deletions

View File

@ -38,7 +38,7 @@ void loop()
// prints value unaltered, i.e. the raw binary version of the
// byte. The serial monitor interprets all bytes as
// ASCII, so 33, the first number, will show up as '!'
Serial.print(thisByte, BYTE);
Serial.write(thisByte);
Serial.print(", dec: ");
// prints value as string as an ASCII-encoded decimal (base 10).