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:
- 10:b959bb206e6b
- Parent:
- 9:32eb75c01e9d
- Child:
- 11:3ebd2263f3e9
--- a/demo.cpp Mon Sep 12 12:48:47 2016 +0000 +++ b/demo.cpp Tue Sep 13 05:53:39 2016 +0000 @@ -56,6 +56,9 @@ wait_ms(SHORT_WAIT); drawFilledTriangle(260, 50, 300, 90, 240, 120, Yellow); wait_ms(SHORT_WAIT); + drawElipse(200, 130, 20, 10, Olive); + wait_ms(SHORT_WAIT); + drawFilledElipse(200, 100, 30, 20, Navy); cls(); */ /* @@ -99,7 +102,7 @@ wait_ms(LONG_WAIT); cls(); */ - +/* puts("Change clipping window, to test it, we use changeColor function, that works only in clipping area:"); wait_ms(LONG_WAIT); setClipWindow(0, 0, 200, 20); @@ -112,10 +115,71 @@ changeColor(Green, Red); puts("\n\n\rHow does it look?"); wait_ms(LONG_WAIT); + cls(); +*/ + + puts("\nLets place a button:"); + wait_ms(LONG_WAIT); + cls(); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + puts("\n\n\n\nDid it work?"); + wait_ms(LONG_WAIT); + puts("\nNow lets change bevel shadow level"); + wait_ms(LONG_WAIT); + bevelShadow(0); + puts("\nNo shadow"); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + wait_ms(SHORT_WAIT); + bevelShadow(1); + puts("\nShadow 1"); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + wait_ms(SHORT_WAIT); + bevelShadow(2); + puts("\nShadow 2"); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + wait_ms(SHORT_WAIT); + bevelShadow(3); + puts("\nShadow 3"); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + wait_ms(SHORT_WAIT); + bevelShadow(4); + puts("\nShadow 4"); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + wait_ms(SHORT_WAIT); + bevelShadow(1); + puts("\nShadow 1"); + drawButton(DEPRESSED, 100, 200, Aqua, Violet, 2, 2, 2, "Press Me"); + //cls(); - - +/* + puts("\nLets place a panel:"); + wait_ms(LONG_WAIT); + cls(); + drawPanel(DEPRESSED, 0, 0, 2, 2, Cream); + puts("\nDid it work?"); + wait_ms(LONG_WAIT); + cls(); +*/ +/* + puts("\nLets place a slider:"); + wait_ms(LONG_WAIT); + cls(); + drawSlider(RAISED, 30, 40, 210, 90, Violet, 100, 0); + puts("\nDid it work?"); + wait_ms(LONG_WAIT); + cls(); +*/ +/* + puts("\nThis particular function is going to copy a specified portion of the creen and paste it somewhere else!"); + wait_ms(LONG_WAIT); + wait_ms(LONG_WAIT); + //cls(); + screenCopyPaste(0, 0, 50, 100, 200, 50); + puts("\nDid it work?"); + wait_ms(LONG_WAIT); + cls(); +*/ }