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