Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <pop7.h> // POP-7 Board
- word L,R,CL=260,CR=400,j=0;
- void setup() {
- OK();
- setTextSize(3);
- out(13,0);out(14,0);
- }
- void loop() {
- L=analog(1);R=analog(2);
- if(L>CL&&R>CR){fd(60);}
- else if(L<CL&&R>CR){sl(60);}
- else if(L>CL&&R<CR){sr(60);}
- }
Advertisement
Add Comment
Please, Sign In to add comment