merge develop
This commit is contained in:
commit
38a00b880f
|
|
@ -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();
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue