FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Updated Arduino example code to be Arduino 1.0+ compatible · devhci/processing@1aeaed8 · GitHub

Repository navigation

Commit 1aeaed8

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

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL