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.
Dependencies: mbed
Fork of Piccolo_1C_Funciones by
Diff: main.cpp
- Revision:
- 1:f246d2321c06
- Parent:
- 0:ad525f3cd781
- Child:
- 2:f52a2c0dedb4
--- a/main.cpp Sat Sep 09 13:44:36 2017 +0000 +++ b/main.cpp Sat Sep 09 14:00:12 2017 +0000 @@ -55,11 +55,11 @@ wait(1);vertex2d(0,0); */ } -void cuadrado() +void cuadrado(int x, int y, int lado) { - float l=20; - float a=10; - float b=10; + float l=lado; + float a=x; + float b=y; myServoZ.pulsewidth_us(MAXPOS); vertex2d(a,b); @@ -165,7 +165,11 @@ maxpos(); wait(3); //diag(); - cuadrado(); + cuadrado(10,10,20); + wait(3); + line(20,20,40,40); + wait(3); + circle(20,20,20); wait(3); }