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

Dependencies:   mbed

Fork of 02_LAB_serial_protocol by ferney alberto beltran molina

draw.h

Committer:
fabeltranm
Date:
2017-10-20
Revision:
20:b7f2e428b24c
Parent:
18:08bd68471535

File content as of revision 20:b7f2e428b24c:

#ifndef DRAW_H   
#define DRAW_H  

#include "mbed.h"

#define MAXPOS 50       // en milimetros

#define RSTEP 2         // en milimetros
#define POSDRAW 10   


#define DEBUG_DRAW 1
void led_on(uint16_t ts, uint16_t tms );

void draw();
void nodraw();
void vertex2d(uint8_t x, uint8_t y);

void home();
void initdraw(float x, float y);
void line(float xi, float yi, float xf, float yf);
void rectangle(float x, float y, float width,float height);
void circle(float x, float y, float radio);
void put_sstime(uint8_t vtime);

#endif //  DRAW_H