Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. bool pushed2=false;
  2. bool pushed3=false;
  3. bool pushed4=false;
  4. bool pushed5=false;
  5. void loop() {
  6.   // put your main code here, to run repeatedly:
  7.   if (digitalRead(2) == 1 && pushed2==false) {
  8.     pass+='2';
  9.     pushed2=true;
  10.     Serial.println("pushed");
  11.   }
  12.   if (digitalRead(2) == 0) pushed2=false;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement