Advertisement
timor2542

[4 DOF Robot Arm Keyestudio][Lab 03][ATX-2] Servo 3 Knob Test

Aug 2nd, 2021
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <ATX2.h>
  2. int x;
  3. void setup(){
  4.   OK();
  5.   glcdClear();
  6.   servo(2,90);
  7.   glcdMode(1);
  8.   setTextSize(2);
  9.   glcd(1,0,"Servo3:");
  10.   setTextSize(5);
  11. }
  12. void loop(){
  13.   x=knob(30,100);
  14.   servo(3,x);
  15.   glcd(1,0," %d   ",x);  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement