Skip to content

Commit 361ca3c

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/libraries/serial/examples/SerialMultiple/SerialMultiple.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void setup()
7777
void loop() {
7878
// read analog input, divide by 4 to make the range 0-255:
7979
int analogValue = analogRead(0)/4;
80-
Serial.print(analogValue, BYTE);
80+
Serial.write(analogValue);
8181
// pause for 10 milliseconds:
8282
delay(10);
8383
}

0 commit comments

Comments
 (0)