21 lines
303 B
C++
21 lines
303 B
C++
#include "MeOrion.h"
|
|
|
|
MeDCMotor leftMotor(9);
|
|
MeDCMotor rightMotor(10);
|
|
|
|
uint8_t motorSpeed = 100;
|
|
|
|
void setup()
|
|
{
|
|
leftMotor.run(0);
|
|
rightMotor.run(0);
|
|
}
|
|
void loop()
|
|
{
|
|
leftMotor.run(motorSpeed);
|
|
rightMotor.run(motorSpeed);
|
|
delay(2000);
|
|
leftMotor.stop();
|
|
rightMotor.stop();
|
|
delay(2000);
|
|
} |