Advertisement
Guest User

ARDUINO ESAME

a guest
Jun 20th, 2016
1,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. finecorsa1status = digitalRead(finecorsa1); //lettura finecorsa 1
  2. if (finecorsa1status == HIGH) {
  3. digitalWrite(motorea,LOW); //pin 12 off
  4. delay(3000);
  5. digitalWrite(motoreb,HIGH); //pin 8 on
  6. }
  7. finecorsa2status = digitalRead(finecorsa2); //lettura finecorsa 1
  8. if (finecorsa2status == HIGH) {
  9. digitalWrite(motoreb,LOW); //pin 12 off
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement