Skip to content

Commit

Permalink
Update motor.c
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaza authored Nov 27, 2017
1 parent cafe0c0 commit d6c7ebc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/examples/motor.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
#include "robot.h"

/* Speed */
#define SPEED 150 // possible range 0~255 PWM
#define SPEEDA 150 // possible range 0~255 PWM
#define SPEEDB 150

int main(void)
{
setup();

setSpeed(SPEED, SPEED);
setSpeed(SPEEDA, SPEEDB);

while (1) {
//printf("go straight\n");
Expand Down

0 comments on commit d6c7ebc

Please sign in to comment.