Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- pinMode(LED_BUILTIN, OUTPUT);
- pinMode(12, INPUT_PULLUP);
- }
- void loop() {
- if(digitalRead(12)==LOW) {
- digitalWrite(LED_BUILTIN, HIGH);
- delay(50);
- digitalWrite(LED_BUILTIN, LOW);
- delay(50);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement