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.
Fork of 01-04_Primer_Avance by
mover.h@5:6ca97bfe9406, 2018-10-06 (annotated)
- Committer:
- sebasmartinez
- Date:
- Sat Oct 06 17:45:42 2018 +0000
- Revision:
- 5:6ca97bfe9406
- Parent:
- 4:ba51736778e1
Programa Movimiento 1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| fabeltranm | 0:89b318e49395 | 1 | #ifndef DRAW_H |
| sebasmartinez | 5:6ca97bfe9406 | 2 | //#define DRAW_H |
| fabeltranm | 0:89b318e49395 | 3 | #include "mbed.h" |
| sebasmartinez | 3:60722da62531 | 4 | #define MAXPOS 180 // en milimetros |
| sebasmartinez | 5:6ca97bfe9406 | 5 | //#define POSDRAW 50 |
| sebasmartinez | 5:6ca97bfe9406 | 6 | //#define POSNODRAW 10 |
| sebasmartinez | 4:ba51736778e1 | 7 | #define ARRIBA 1700 |
| sebasmartinez | 5:6ca97bfe9406 | 8 | #define CENTRO 1500 |
| sebasmartinez | 5:6ca97bfe9406 | 9 | #define ABAJO 600 |
| sebasmartinez | 5:6ca97bfe9406 | 10 | #define ADELANTE 720 |
| sebasmartinez | 5:6ca97bfe9406 | 11 | #define ATRAS 2200 |
| fabeltranm | 0:89b318e49395 | 12 | |
| fabeltranm | 0:89b318e49395 | 13 | void init_servo(); |
| fabeltranm | 0:89b318e49395 | 14 | void draw(); |
| fabeltranm | 0:89b318e49395 | 15 | void nodraw(); |
| fabeltranm | 1:526bdd5faa37 | 16 | void mover_ser(uint8_t motor, uint8_t pos); |
| sebasmartinez | 4:ba51736778e1 | 17 | void mover_par(uint8_t pares, uint8_t dir); |
| sebasmartinez | 4:ba51736778e1 | 18 | void centro(uint8_t pos_p); |
| fabeltranm | 0:89b318e49395 | 19 | |
| fabeltranm | 0:89b318e49395 | 20 | #endif // DRAW_H |
