KRITSADA

09 POP-X2 Serial Control Motor

Feb 20th, 2018
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <popx2.h>
  2. void setup(){ setTextSize(2); }
  3. void loop(){
  4.   if(uart_ready()){
  5.     x=uart_getkey();
  6.     glcd(1,1,"%b",x);
  7.     if(x=='a'){fd(80);}
  8.   else if (x=='c'){sl(80);}
  9.   else if(x=='d'){sr(80);}
  10.     else if(x=='b'){ao();}
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment