diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-04-23 23:56:22 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-04-23 23:56:22 +0200 |
commit | a34c0ded1873121431eed41210b7f44c8271ac0a (patch) | |
tree | abc93de8443a5f14a0bfb538174464d838d065d5 /demos/modules/gwin/progressbar/main.c | |
parent | c3b17604ee456a725328f924a8a3ec339629eb7b (diff) | |
download | uGFX-a34c0ded1873121431eed41210b7f44c8271ac0a.tar.gz uGFX-a34c0ded1873121431eed41210b7f44c8271ac0a.tar.bz2 uGFX-a34c0ded1873121431eed41210b7f44c8271ac0a.zip |
Updating progressbar demo
Diffstat (limited to 'demos/modules/gwin/progressbar/main.c')
-rw-r--r-- | demos/modules/gwin/progressbar/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/demos/modules/gwin/progressbar/main.c b/demos/modules/gwin/progressbar/main.c index 28ae2c2e..960a3293 100644 --- a/demos/modules/gwin/progressbar/main.c +++ b/demos/modules/gwin/progressbar/main.c @@ -23,15 +23,20 @@ int main(void) { _createWidget(); +#if 1 gwinProgressbarSetResolution(ghProgressbar, 10); gwinProgressbarStart(ghProgressbar, 500); gfxSleepMilliseconds(3000); gwinProgressbarReset(ghProgressbar); - //gwinProgressbarSetPosition(ghProgressbar, 42); - //gwinProgressbarIncrement(ghProgressbar); - //gwinProgressbarDecrement(ghProgressbar); + gfxSleepMilliseconds(3000); + gwinDestroy(ghProgressbar); +#else + gwinProgressbarSetPosition(ghProgressbar, 42); + gwinProgressbarIncrement(ghProgressbar); + gwinProgressbarDecrement(ghProgressbar); +#endif while (1) { gfxSleepMilliseconds(500); |