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.
Diff: Master.cpp
- Revision:
- 23:112c0be5a7f3
- Parent:
- 22:4d85d989af08
- Child:
- 24:8e7cc6a2e214
--- a/Master.cpp Tue Nov 19 17:01:38 2013 +0000 +++ b/Master.cpp Tue Nov 19 19:07:35 2013 +0000 @@ -1,8 +1,26 @@ +#include "mbed.h" +#include "include/geom.hpp" -#include "mbed.h" -#include "geom.hpp" +Serial pc(USBTX, USBRX); + int main() { -Point p1(1,2,3); - + Point p1(1,2,3); + Point p2(2,2,3); + + Line l1(p1,p2); + + Point p3(3,2,3); + + Point bLine[3] = {p1,p2,p3}; + + BezCurve b(bLine, sizeof(bLine)/sizeof(Point)); + + b.setAdot(.025); + b.startCurve(); + + while(1){ + pc.printf("%f\n",b.newPoint().x); + wait(2); + } }