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:
- 6:a1a85f2bc04b
- Parent:
- 5:890ddd974624
- Child:
- 7:f064ae670553
--- a/demo.cpp Mon Sep 12 10:15:54 2016 +0000 +++ b/demo.cpp Mon Sep 12 11:25:37 2016 +0000 @@ -10,7 +10,7 @@ //************************************************************************** void PICASO_4DGL :: graphicsDemo() { - cls(); + //cls(); screenOrientation(landscape); // set orientation to landscape puts("This is the Graphics functions demo"); wait_ms(LONG_WAIT); @@ -57,10 +57,31 @@ wait_ms(SHORT_WAIT); cls(); +/* + // somehow after this function display stops (but the calculation is right) puts("Lets calculate distance from point 0,0 on angle 40, 60 pixels away:"); wait_ms(LONG_WAIT); cls(); calculateOrbit(40, 60); + wait_ms(SHORT_WAIT); + cls(); +*/ + puts("Lets draw some pixels:"); + wait_ms(LONG_WAIT); + putPixel(15, 15, White); + wait_ms(SHORT_WAIT); + putPixel(20, 20, Red); + wait_ms(SHORT_WAIT); + putPixel(25, 25, Green); + wait_ms(SHORT_WAIT); + putPixel(30, 30, Blue); + wait_ms(SHORT_WAIT); + putPixel(35, 35, Aqua); + wait_ms(LONG_WAIT); + cls(); + + + } //**************************************************************************