24 lines
425 B
C++
24 lines
425 B
C++
int motor1 = A0;
|
|
int motor2 = A1;
|
|
int motor3 = A2;
|
|
int motor4 = A3;
|
|
int motor5 = A4;
|
|
int motor6 = A5;
|
|
|
|
void setup() {
|
|
// put your setup code here, to run once:
|
|
pinMode(motor1, OUTPUT);
|
|
pinMode(motor2, OUTPUT);
|
|
pinMode(motor3, OUTPUT);
|
|
pinMode(motor4, OUTPUT);
|
|
}
|
|
|
|
void loop() {
|
|
analogWrite(motor1 , 200);
|
|
delay(20);
|
|
analogWrite(motor1 , -200);
|
|
|
|
|
|
// put your main code here, to run repeatedly:
|
|
|
|
}
|