nicolas rojas
/
segundo_copy
pausa
Fork of primercorte by
Diff: draw.cpp
- Revision:
- 4:244a242e0428
- Parent:
- 0:0119b611fc51
diff -r c457572a9bb2 -r 244a242e0428 draw.cpp --- a/draw.cpp Tue Jun 05 23:01:22 2018 +0000 +++ b/draw.cpp Wed Jun 06 18:02:21 2018 +0000 @@ -2,7 +2,7 @@ #include "draw.h" #include "mbed.h" #include "math.h" - + PwmOut myServoZ(PB_3); PwmOut myServoX(PB_4); @@ -46,7 +46,6 @@ wait_ms(ss_time*10); } - void vertex2d(uint8_t x, uint8_t y){ int pulseX = coord2us(x); @@ -56,14 +55,13 @@ myServoY.pulsewidth_us(pulseY); sstime(x,y); - } void initdraw(float x, float y){ vertex2d (x,y); draw(); -} - +} + void home(){ nodraw(); vertex2d(0 ,0);