Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define motorPinA 3
- #define motorPinB 4
- void setup()
- {
- pinMode(motorPinA, OUTPUT);
- pinMode(motorPinB, OUTPUT);
- Serial.begin(9600);
- Serial.println("Spin");
- }
- void loop()
- {
- digitalWrite(motorPinA,HIGH);
- digitalWrite(motorPinB,LOW);
- delay(10000);
- digitalWrite(motorPinA,0);
- digitalWrite(motorPinB,0);
- delay(2000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement