We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 219c6e8 commit 1aeaed8Copy full SHA for 1aeaed8
java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde
@@ -133,15 +133,15 @@ void loop()
133
// so that you're sending 100 or 255:
134
thirdSensor = 100 + (155 * digitalRead(2));
135
// send sensor values:
136
- Serial.print(firstSensor, BYTE);
137
- Serial.print(secondSensor, BYTE);
138
- Serial.print(thirdSensor, BYTE);
+ Serial.write(firstSensor);
+ Serial.write(secondSensor);
+ Serial.write(thirdSensor);
139
}
140
141
142
void establishContact() {
143
while (Serial.available() <= 0) {
144
- Serial.print('A', BYTE); // send a capital A
+ Serial.write('A'); // send a capital A
145
delay(300);
146
147
0 commit comments