expression pins
This commit is contained in:
parent
d21a52d6b2
commit
0f53337ed7
@ -4,11 +4,11 @@
|
|||||||
#include <ESPUI.h>
|
#include <ESPUI.h>
|
||||||
#include <LARS.h>
|
#include <LARS.h>
|
||||||
|
|
||||||
#define ledDataPin 27 // cannot use
|
#define ledDataPin 2
|
||||||
#define beeperPin 17 // cannot use
|
#define beeperPin 4
|
||||||
|
|
||||||
#define echoPin 5 // cannot use
|
#define echoPin 36
|
||||||
#define triggerPin 23 //cannot use
|
#define triggerPin 34
|
||||||
|
|
||||||
#define checkTime 1000
|
#define checkTime 1000
|
||||||
#define warningDistance 20
|
#define warningDistance 20
|
||||||
@ -90,7 +90,7 @@ void loop() {
|
|||||||
checkDistance();
|
checkDistance();
|
||||||
oldTime = millis();
|
oldTime = millis();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (walk_forward) robot.walk(0);
|
if (walk_forward) robot.walk(0);
|
||||||
else if (walk_backward) robot.walk();
|
else if (walk_backward) robot.walk();
|
||||||
else if (hello) robot.hello();
|
else if (hello) robot.hello();
|
||||||
|
Loading…
Reference in New Issue
Block a user