Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ATX2.h>
- int x1, x2, x3;
- void setup(){
- OK();
- glcdClear();
- glcdMode(1);
- setTextSize(2);
- glcd(1,1,"SV1:");
- glcd(2,1,"SV2:");
- glcd(3,1,"SV3:");
- }
- void loop(){
- x1 = knob(180);
- x2 = map(analog(6), 0, 1023, 30, 90);
- x3 = map(analog(7), 0, 1023, 30, 100);
- servo(1, x1);
- servo(2, x2);
- servo(3, x3);
- glcd(1,5," %d ",x1);
- glcd(2,5," %d ",x2);
- glcd(3,5," %d ",x3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement