Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int motor[] = {3, 4, 5, 6, 7, 8};
- int maI = 4;
- int maII = 5;
- int vela = 3;
- int velb = 8;
- int mbI = 6;
- int mbII = 7;
- void setup() {
- // put your setup code here, to run once:
- for(int i = 0; i<6; i++){
- pinMode(motor[i], OUTPUT);
- }
- }
- void loop() {
- // put your main code here, to run repeatedly:
- digitalWrite(mbI, 1);
- digitalWrite(mbII, 0);
- analogWrite(velb,200);
- delay(2500);
- digitalWrite(mbI, 0);
- digitalWrite(mbII, 1);
- analogWrite(velb,200);
- delay(2500);
- }
Add Comment
Please, Sign In to add comment