Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int ledPin = 5;
- const int botonPin = 3;
- void setup() {
- pinMode(ledPin, OUTPUT);
- pinMode(botonPin, INPUT_PULLUP);
- }
- void loop() {
- bool lectura = digitalRead(botonPin);
- digitalWrite(ledPin, lectura);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement