From 4ef9ba22ab5b6588b6f6c47821c78637d5ef9eb8 Mon Sep 17 00:00:00 2001 From: Lucas Marais Date: Fri, 31 Mar 2023 08:39:36 +0200 Subject: [PATCH] Make the robot move 2s and stop 2s --- motion/motion.ino | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 motion/motion.ino diff --git a/motion/motion.ino b/motion/motion.ino new file mode 100644 index 0000000..e617169 --- /dev/null +++ b/motion/motion.ino @@ -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); + +}