Go Down

Topic: photoresistor that needs help (Read 317 times) previous topic - next topic

Jun 09, 2012, 01:05 am Last Edit: Jun 09, 2012, 01:07 am by skeeter_mcbee Reason: 1
I've got a photoresistor that I'm trying to read the value for, but I'm only reading 1023.
Code: [Select]

void setup() {
Serial.begin(9600);
pinMode(A0, INPUT);
}
void loop() {
int val = analogRead(A0);
Serial.printlnt(val);
delay(10);
}
-skeeter_mcbee-

ok. fixed it. No need for help.
-skeeter_mcbee-

Go Up