Vanesa Lara Cruz / Mbed 2 deprecated serial-protocol-V2

Dependencies:   mbed

Fork of 02_LAB_serial_protocol by ferney alberto beltran molina

Committer:
fabeltranm
Date:
Fri Oct 20 00:50:00 2017 +0000
Revision:
20:b7f2e428b24c
Parent:
18:08bd68471535
update debug draw

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fabeltranm 10:d2bf51fdc68a 1 #ifndef DRAW_H
fabeltranm 10:d2bf51fdc68a 2 #define DRAW_H
fabeltranm 10:d2bf51fdc68a 3
fabeltranm 10:d2bf51fdc68a 4 #include "mbed.h"
fabeltranm 10:d2bf51fdc68a 5
fabeltranm 10:d2bf51fdc68a 6 #define MAXPOS 50 // en milimetros
fabeltranm 14:124051c4524a 7
fabeltranm 18:08bd68471535 8 #define RSTEP 2 // en milimetros
fabeltranm 10:d2bf51fdc68a 9 #define POSDRAW 10
fabeltranm 20:b7f2e428b24c 10
fabeltranm 20:b7f2e428b24c 11
fabeltranm 20:b7f2e428b24c 12 #define DEBUG_DRAW 1
fabeltranm 10:d2bf51fdc68a 13 void led_on(uint16_t ts, uint16_t tms );
fabeltranm 10:d2bf51fdc68a 14
fabeltranm 10:d2bf51fdc68a 15 void draw();
fabeltranm 10:d2bf51fdc68a 16 void nodraw();
fabeltranm 10:d2bf51fdc68a 17 void vertex2d(uint8_t x, uint8_t y);
fabeltranm 10:d2bf51fdc68a 18
fabeltranm 10:d2bf51fdc68a 19 void home();
fabeltranm 10:d2bf51fdc68a 20 void initdraw(float x, float y);
fabeltranm 10:d2bf51fdc68a 21 void line(float xi, float yi, float xf, float yf);
fabeltranm 10:d2bf51fdc68a 22 void rectangle(float x, float y, float width,float height);
fabeltranm 20:b7f2e428b24c 23 void circle(float x, float y, float radio);
fabeltranm 14:124051c4524a 24 void put_sstime(uint8_t vtime);
fabeltranm 10:d2bf51fdc68a 25
fabeltranm 10:d2bf51fdc68a 26 #endif // DRAW_H