int photocellPin = 0;
int value = 0;
void setup() {
Serial.begin(9600);
pinMode(photocellPin,INPUT);
}
void loop() {
value = analogRead(0)/2;
Serial.print("photocell:");
Serial.println(value);
delay(10);
}
Sunday, February 24, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment