Advertisement
alveoten

Untitled

May 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. void loop() {
  2.  
  3.  bool actual_status = digitalRead(pulsante);
  4.  if(actual_status == LOW){
  5.     //fai quello che devi fare col pistone
  6.     need_rfid = true;
  7.  }
  8.  
  9.  if(need_rfid){
  10.   //leggi da rfid ed evntualmente fai quello che devi col pistone
  11.   need_rfid = false;
  12.  }
  13.  
  14. }//loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement