Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mover.h
- Revision:
- 0:73e805ecf765
- Child:
- 1:59be7d7e1b54
diff -r 000000000000 -r 73e805ecf765 mover.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mover.h Wed Oct 10 22:49:18 2018 +0000 @@ -0,0 +1,20 @@ +#ifndef DRAW_H +//#define DRAW_H +#include "mbed.h" +#define MAXPOS 180 // en milimetros +//#define POSDRAW 50 +//#define POSNODRAW 10 +#define ARRIBA 1700 +#define CENTRO 1500 +#define ABAJO 600 +#define ADELANTE 720 +#define ATRAS 2200 + +void init_servo(); +void draw(); +void nodraw(); +void mover_ser(uint8_t motor, uint8_t pos); +void mover_par(uint8_t pares, uint8_t dir); +void centro(uint8_t pos_p); + +#endif // DRAW_H \ No newline at end of file