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

@ -14,12 +14,12 @@ void stringCallback(char *myString)
void sysexCallback(byte command, byte argc, byte*argv)
{
Serial.print(START_SYSEX, BYTE);
Serial.print(command, BYTE);
Serial.write(START_SYSEX);
Serial.write(command);
for(byte i=0; i<argc; i++) {
Serial.print(argv[i], BYTE);
Serial.write(argv[i]);
}
Serial.print(END_SYSEX, BYTE);
Serial.write(END_SYSEX);
}
void setup()

View File

@ -71,7 +71,7 @@ void loop() {
thisChar = 'a';
}
// print the character
lcd.print(thisChar, BYTE);
lcd.write(thisChar);
// wait a second:
delay(1000);
// increment the letter:

View File

@ -61,7 +61,7 @@ void loop() {
// set the cursor position:
lcd.setCursor(thisRow,thisCol);
// print the letter:
lcd.print(thisLetter, BYTE);
lcd.write(thisLetter);
delay(200);
}
}