Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int speedPin = 9;
- int directionPin = 8;
- void setup() {
- Serial.begin(9600);
- initializeMotor(speedPin,directionPin);
- }
- void loop() {
- motorForward(100, speedPin, directionPin);
- delay(5000);
- motorReverse(100, speedPin, directionPin);
- delay(5000);
- motorStop( speedPin, directionPin);
- delay(3000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement