first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include <Arduino.h>
|
||||
#include <Servo.h>
|
||||
|
||||
Servo Servo1;
|
||||
Servo Servo2;
|
||||
Servo Servo3;
|
||||
Servo Servo4;
|
||||
|
||||
void setup(){
|
||||
Servo1.attach(15);
|
||||
Servo2.attach(14);
|
||||
Servo3.attach(13);
|
||||
Servo4.attach(12);
|
||||
}
|
||||
|
||||
void loop(){
|
||||
for(int i = 0; i < 270; i ++){
|
||||
Servo1.write(i);
|
||||
Servo2.write(i);
|
||||
Servo3.write(i);
|
||||
Servo4.write(i);
|
||||
sleep_ms(10);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user