Merge branch 'develop'

This commit is contained in:
Loic Delattre 2023-04-24 09:03:50 +02:00
commit 15562311fd
3 changed files with 51 additions and 0 deletions

25
motion/motion.ino Normal file
View File

@ -0,0 +1,25 @@
#include <MeMCore.h>
MeDCMotor _rightMotor(10);
MeDCMotor _leftMotor(9);
void setup() {
// put your setup code here, to run once:
_leftMotor.run(0);
_rightMotor.run(0);
}
void loop() {
// put your main code here, to run repeatedly:
getMoving(80, 1, -1, 3000);
}
void getMoving(int speedMove, int dirRight, int dirLeft, int timeMove){
//if direction = -1 turn right
_leftMotor.run(dirLeft*speedMove);
_rightMotor.run(dirRight*speedMove);
delay(timeMove);
_leftMotor.stop();
_rightMotor.stop();
}

11
roomba/roomba.ino Normal file
View File

@ -0,0 +1,11 @@
#include <MeMCore.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}

View File

@ -0,0 +1,15 @@
#include <MeMCore.h>
MeDCMotor _rightMotor(10);
MeDCMotor _leftMotor(9);
void setup() {
// put your setup code here, to run once:
_leftMotor.run(0);
_rightMotor.run(0);
}
void loop() {
// put your main code here, to run repeatedly:
}