Skip to content

Commit 1aeaed8

Browse files
committed
Updated Arduino example code to be Arduino 1.0+ compatible
1 parent 219c6e8 commit 1aeaed8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/libraries/serial/examples/SerialCallResponse/SerialCallResponse.pde

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ void loop()
133133
// so that you're sending 100 or 255:
134134
thirdSensor = 100 + (155 * digitalRead(2));
135135
// send sensor values:
136-
Serial.print(firstSensor, BYTE);
137-
Serial.print(secondSensor, BYTE);
138-
Serial.print(thirdSensor, BYTE);
136+
Serial.write(firstSensor);
137+
Serial.write(secondSensor);
138+
Serial.write(thirdSensor);
139139
}
140140
}
141141
142142
void establishContact() {
143143
while (Serial.available() <= 0) {
144-
Serial.print('A', BYTE); // send a capital A
144+
Serial.write('A'); // send a capital A
145145
delay(300);
146146
}
147147
}

0 commit comments

Comments
 (0)