February 2012
82 posts
Department of Landscape Architecture →
Arduino // Photocell
/*
* ap_ReadAnalog
*
* Reads an analog input from the input pin and sends the value
* followed by a line break over the serial port.
*
* This file is part of the Arduino meets Processing Project:
* For more information visit http://www.arduino.cc.
*
* copyleft 2005 by Melvin Ochsmann for Malm� University
*
*/
// variables for input pin and control LED
int analogInput = 3;
int...