Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task main()
- {
- SetSensor(IN_3,SENSOR_TOUCH);
- SetSensor(IN_4,SENSOR_TOUCH);
- if(SENSOR_3==1)
- {
- OnFwd(OUT_B, 100);
- OnFwd(OUT_C, 100);
- }
- else if(SENSOR_4==1)
- {
- OnRev(OUT_B, 100);
- OnRev(OUT_C, 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement