Pinned Loading
-
ButtonState
ButtonState 1int currentState = HIGH;
2int previousState = HIGH;
34void setup() {
5Serial.begin(9600);
-
Arduino: Toggle a LED with a single ...
Arduino: Toggle a LED with a single button On/Off 1const int buttonPin = 2;
2const int ledPin = 11;
34int currState = HIGH;
5int prevState = HIGH;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.