12345678910111213141516171819202122232425 |
- #include <FR_DCBServo.h>
- FR_DCBServo S1,S2,S3,S4;
- void setup() {
- // put your setup code here, to run once:
- S1.attach(10);
- S2.attach(11,544,2400);
- S3.attach(2);
- S4.attach(4,544,2400);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- S1.write(0,100);
- S2.write(0,100);
- S3.write(0,100);
- S4.write(0,100);
- delay(2000);
- S1.write(180,255,true);
- S2.write(180,255,true);
- S3.write(180,255,true);
- S4.write(180,255,true);
- }
|