Ok so lets say I use a voltage divider and the Vout is 1.2 volts.
// set the LED using the state of the button: digitalWrite(ledPin, buttonState);
// toggle the LED using the state of the button:if (lastButtonState != buttonState) digitalWrite(ledPin, !digitalRead(ledPin));
How can I do this with arduino?
@hunter2379 - why do you post a question and then lock the thread?Unlocked.