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

Dependencies:   mbed

Fork of 02_LAB_serial_protocol by ferney alberto beltran molina

Revision:
10:d2bf51fdc68a
Child:
14:124051c4524a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/draw.h	Wed Oct 11 23:09:44 2017 +0000
@@ -0,0 +1,23 @@
+#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 
\ No newline at end of file