Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop() {
- motor.write(90);
- if((ldr=HIGH)&&(ldr2=LOW))
- {motor.write(180);}
- else if((ldr2=HIGH)&&(ldr=LOW))
- {motor.write(0);}
- else
- {motor.write(90);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement