Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- }
- void loop()
- {
- lcd("%d, %d",analog(0),analog(4));
- int L,R;
- L=analog(0);
- R=analog(4);
- if(L>512 && R>512){
- fd(80);
- }
- if(R<512){
- sr(20);
- }
- if(L<512){
- sl(20);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement