Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- finecorsa1status = digitalRead(finecorsa1); //lettura finecorsa 1
- if (finecorsa1status == HIGH) {
- digitalWrite(motorea,LOW); //pin 12 off
- delay(3000);
- digitalWrite(motoreb,HIGH); //pin 8 on
- }
- finecorsa2status = digitalRead(finecorsa2); //lettura finecorsa 1
- if (finecorsa2status == HIGH) {
- digitalWrite(motoreb,LOW); //pin 12 off
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement