Go Down

Topic: photoresistor that needs help (Read 330 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() {
pinMode(A0, INPUT);
void loop() {
int val = analogRead(A0);

ok. fixed it. No need for help.

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!

via Egeo 16
Torino, 10131