moving getting started to the books subfolder

This commit is contained in:
benfry
2011-01-26 19:27:48 +00:00
parent eb64b2d4fc
commit a187b61523
145 changed files with 0 additions and 0 deletions
@@ -0,0 +1,17 @@
// Example 11-06 from "Getting Started with Processing"
// by Reas & Fry. O'Reilly / Make 2010
// Note: This is code for an Arduino board, not Processing
int sensorPin = 0; // Select input pin
int val = 0;
void setup() {
Serial.begin(9600); // Open serial port
}
void loop() {
val = analogRead(sensorPin) / 4; // Read value from sensor
Serial.print(val, BYTE); // Print variable to serial port
delay(100); // Wait 100 milliseconds
}