Merge branch 'develop'
This commit is contained in:
commit
cf57c0ebd0
|
|
@ -0,0 +1,23 @@
|
||||||
|
#include "Arduino.h"
|
||||||
|
#include "Wire.h"
|
||||||
|
#include "MeMCore.h"
|
||||||
|
|
||||||
|
int speed = 100;
|
||||||
|
MeDCMotor _leftMotor(9);
|
||||||
|
MeDCMotor _rightMotor(10);
|
||||||
|
|
||||||
|
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:
|
||||||
|
_leftMotor.run(speed);
|
||||||
|
_rightMotor.run(speed);
|
||||||
|
delay(2000);
|
||||||
|
_leftMotor.stop();
|
||||||
|
_rightMotor.stop();
|
||||||
|
delay(2000);
|
||||||
|
}
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
void setup() {
|
|
||||||
// put your setup code here, to run once:
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void loop() {
|
|
||||||
// put your main code here, to run repeatedly:
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue