BrickUp API Service for Docker version.

moveDCBServo.ino 459B

12345678910111213141516171819202122232425
  1. #include <FR_DCBServo.h>
  2. FR_DCBServo S1,S2,S3,S4;
  3. void setup() {
  4. // put your setup code here, to run once:
  5. S1.attach(10);
  6. S2.attach(11,544,2400);
  7. S3.attach(2);
  8. S4.attach(4,544,2400);
  9. }
  10. void loop() {
  11. // put your main code here, to run repeatedly:
  12. S1.write(0,100);
  13. S2.write(0,100);
  14. S3.write(0,100);
  15. S4.write(0,100);
  16. delay(2000);
  17. S1.write(180,255,true);
  18. S2.write(180,255,true);
  19. S3.write(180,255,true);
  20. S4.write(180,255,true);
  21. }