Make the robot move 2s and stop 2s
This commit is contained in:
parent
e15bc8b8f8
commit
4ef9ba22ab
|
|
@ -0,0 +1,21 @@
|
|||
#include "MeMCore.h"
|
||||
|
||||
MeDCMotor motor1(9);
|
||||
|
||||
MeDCMotor motor2(10);
|
||||
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
motor1.run(-100);
|
||||
motor2.run(100);
|
||||
delay(2000);
|
||||
motor1.stop();
|
||||
motor2.stop();
|
||||
delay(2000);
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue