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: demo.cpp
- Revision:
- 4:50511ed54ab4
- Parent:
- 3:dcfbceb81fef
- Child:
- 5:890ddd974624
--- a/demo.cpp Fri Sep 09 10:19:54 2016 +0000 +++ b/demo.cpp Fri Sep 09 12:45:28 2016 +0000 @@ -26,7 +26,7 @@ changeColor(Purple, Yellow); wait_ms(LONG_WAIT); cls(); -*/ + puts("Lets draw some shapes:"); wait_ms(SHORT_WAIT); drawCircle(100, 100, 20, Aqua); @@ -55,6 +55,12 @@ wait_ms(SHORT_WAIT); drawFilledTriangle(260, 50, 300, 90, 240, 120, Yellow); wait_ms(SHORT_WAIT); + cls(); +*/ + puts("Lets calculate distance from point 0,0 on angle 40, 60 pixels away:"); + wait_ms(LONG_WAIT); + cls(); + calculateOrbit(40, 60); } //**************************************************************************