Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int buttonApin = 13;
- void setup()
- {
- pinMode(buttonApin, INPUT_PULLUP);
- }
- void loop()
- {
- while (digitalRead(buttonApin) == LOW)
- {
- digitalWrite(ledPinsin, LOW);
- digitalWrite (ledPinpun, LOW);
- analogWrite(ENABLE,LOW);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement