23 lines
327 B
C++
23 lines
327 B
C++
#include "Arduino.h"
|
|
#include "Wire.h"
|
|
#include "MeMCore.h"
|
|
#include "SoftwareSerial.h"
|
|
|
|
MeDCMotor _leftMotor(9);
|
|
MeDCMotor _rightMotor(10);
|
|
|
|
void setup() {
|
|
_leftMotor.run(0);
|
|
_rightMotor.run(0);
|
|
|
|
}
|
|
|
|
void loop() {
|
|
_leftMotor.run(100);
|
|
_rightMotor.run(-100);
|
|
delay(2000);
|
|
_leftMotor.stop();
|
|
_rightMotor.stop();
|
|
|
|
}
|