mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
Updated Arduino example code to be Arduino 1.0+ compatible
This commit is contained in:
@@ -77,7 +77,7 @@ void setup()
|
||||
void loop() {
|
||||
// read analog input, divide by 4 to make the range 0-255:
|
||||
int analogValue = analogRead(0)/4;
|
||||
Serial.print(analogValue, BYTE);
|
||||
Serial.write(analogValue);
|
||||
// pause for 10 milliseconds:
|
||||
delay(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user