Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void loop() {
  2. motor.write(90);
  3. if((ldr=HIGH)&&(ldr2=LOW))
  4. {motor.write(180);}
  5. else if((ldr2=HIGH)&&(ldr=LOW))
  6. {motor.write(0);}
  7. else
  8. {motor.write(90);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement