first motion

This commit is contained in:
rio.loann 2023-04-24 08:21:29 +02:00
parent ad64002f6f
commit 0e8fa620ab
1 changed files with 16 additions and 4 deletions

View File

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