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 02_LAB_serial_protocol by
draw.h
- Committer:
- fabeltranm
- Date:
- 2017-10-11
- Revision:
- 10:d2bf51fdc68a
- Child:
- 14:124051c4524a
File content as of revision 10:d2bf51fdc68a:
#ifndef DRAW_H
#define DRAW_H
#include "mbed.h"
#define MAXPOS 50 // en milimetros
#define SS_TIME 100 // en microsegundos
#define RSTEP 5 // en milimetros
#define POSDRAW 10
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);
#endif // DRAW_H
