sebastian martinez / Mbed 2 deprecated Avance_Color

Dependencies:   mbed

Committer:
sebasmartinez
Date:
Wed Oct 10 22:49:18 2018 +0000
Revision:
0:73e805ecf765
Child:
1:59be7d7e1b54
ENTREGA

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sebasmartinez 0:73e805ecf765 1 #ifndef DRAW_H
sebasmartinez 0:73e805ecf765 2 //#define DRAW_H
sebasmartinez 0:73e805ecf765 3 #include "mbed.h"
sebasmartinez 0:73e805ecf765 4 #define MAXPOS 180 // en milimetros
sebasmartinez 0:73e805ecf765 5 //#define POSDRAW 50
sebasmartinez 0:73e805ecf765 6 //#define POSNODRAW 10
sebasmartinez 0:73e805ecf765 7 #define ARRIBA 1700
sebasmartinez 0:73e805ecf765 8 #define CENTRO 1500
sebasmartinez 0:73e805ecf765 9 #define ABAJO 600
sebasmartinez 0:73e805ecf765 10 #define ADELANTE 720
sebasmartinez 0:73e805ecf765 11 #define ATRAS 2200
sebasmartinez 0:73e805ecf765 12
sebasmartinez 0:73e805ecf765 13 void init_servo();
sebasmartinez 0:73e805ecf765 14 void draw();
sebasmartinez 0:73e805ecf765 15 void nodraw();
sebasmartinez 0:73e805ecf765 16 void mover_ser(uint8_t motor, uint8_t pos);
sebasmartinez 0:73e805ecf765 17 void mover_par(uint8_t pares, uint8_t dir);
sebasmartinez 0:73e805ecf765 18 void centro(uint8_t pos_p);
sebasmartinez 0:73e805ecf765 19
sebasmartinez 0:73e805ecf765 20 #endif // DRAW_H