Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions esp8266_robot/esp8266_robot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ int stop(String command) {

R_MOTOR->setSpeed(0);
R_MOTOR->run( RELEASE );


return 1;
}

int forward(String command) {
Expand All @@ -101,7 +102,8 @@ int forward(String command) {

R_MOTOR->setSpeed(200);
R_MOTOR->run( FORWARD );


return 1;
}

int left(String command) {
Expand All @@ -112,7 +114,8 @@ int left(String command) {

R_MOTOR->setSpeed(100);
R_MOTOR->run( FORWARD );


return 1;
}

int right(String command) {
Expand All @@ -123,7 +126,8 @@ int right(String command) {

R_MOTOR->setSpeed(100);
R_MOTOR->run( BACKWARD );


return 1;
}

int backward(String command) {
Expand All @@ -135,4 +139,5 @@ int backward(String command) {
R_MOTOR->setSpeed(150);
R_MOTOR->run( BACKWARD );

return 1;
}