Make the robot move 2s and stop 2s

This commit is contained in:
Lucas Marais 2023-03-31 08:39:36 +02:00
parent e15bc8b8f8
commit 4ef9ba22ab
1 changed files with 21 additions and 0 deletions

21
motion/motion.ino Normal file
View File

@ -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);
}