Go Down

Topic: photoresistor that needs help (Read 321 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy