timor2542

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

Aug 2nd, 2021
681
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,"Servo4:");
  9.   setTextSize(5);
  10. }
  11. void loop(){
  12.   x=knob(80,180);
  13.   servo(4,x);
  14.   glcd(1,0," %d   ",x);  
  15. }
RAW Paste Data