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:
@ -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()
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user