Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool pushed2=false;
- bool pushed3=false;
- bool pushed4=false;
- bool pushed5=false;
- void loop() {
- // put your main code here, to run repeatedly:
- if (digitalRead(2) == 1 && pushed2==false) {
- pass+='2';
- pushed2=true;
- Serial.println("pushed");
- }
- if (digitalRead(2) == 0) pushed2=false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement