Compare commits

...

2 Commits

Author SHA1 Message Date
Gabri6 38a00b880f merge develop 2023-04-24 10:43:51 +02:00
Gabri6 229776a76c new directory motion, and arduino file motion.ino 2023-04-24 10:43:08 +02:00
1 changed files with 20 additions and 0 deletions

20
motion/motion.ino Normal file
View File

@ -0,0 +1,20 @@
#include <MeMCore.h
MeDCMotor leftRotor(9);
MeDCMotor rightRotor(10);
void setup() {
// put your setup code here, to run once:
leftRotor.run(0);
rightRotor.run(0);
}
void loop() {
// put your main code here, to run repeatedly:
leftRotor.run(lSpeed);
rightRotor.run(rSpeed);
delay(duration);
leftRotor.stop();
rightRotor.stop();
}