analogWrite(LED1, val/4); analogWrite(LED2, val/4); delay(10); randOn = random (10, 150); // generate ON time between 0.02 and 0.15 seconds randOff = random (250, 2000); // generate OFF time between 0.25 and 2.5 seconds digitalWrite(LED1, HIGH); // sets the LED on digitalWrite(LED2, HIGH);
I've got the LDR connected to a resistor, into the ground and 5.v of my arduino uno board?
what would you have instead of digitalWrite though
Please enter a valid email to subscribe
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