Advertisement
timor2542

[4 DOF Robot Arm Keyestudio][Lab 01][ATX-2] Servo 1 Knob Test

Aug 2nd, 2021
790
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.   glcdMode(1);
  7.   setTextSize(2);
  8.   glcd(1,0,"Servo1:");
  9.   setTextSize(5);
  10. }
  11. void loop(){
  12.   x=knob(180);
  13.   servo(1,x);
  14.   glcd(1,0," %d   ",x);  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement