diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-07-16 15:28:42 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-07-16 15:28:42 +1000 |
commit | c82fc68bfad5787c0745b957abf61fb18304ecd8 (patch) | |
tree | 2e57ca8a10910cc72b56db41d34405b3a2e72890 /demos/modules/gaudin/main.c | |
parent | 38a2a44b3d27ca29019cd0d75e60233ee9188c71 (diff) | |
download | uGFX-c82fc68bfad5787c0745b957abf61fb18304ecd8.tar.gz uGFX-c82fc68bfad5787c0745b957abf61fb18304ecd8.tar.bz2 uGFX-c82fc68bfad5787c0745b957abf61fb18304ecd8.zip |
Update gaudin and gadc demos for new GWIN
Diffstat (limited to 'demos/modules/gaudin/main.c')
-rw-r--r-- | demos/modules/gaudin/main.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/demos/modules/gaudin/main.c b/demos/modules/gaudin/main.c index 2f3759ff..32418450 100644 --- a/demos/modules/gaudin/main.c +++ b/demos/modules/gaudin/main.c @@ -59,13 +59,20 @@ int main(void) { sheight = gdispGetHeight(); /* Set up the scope window to fill the screen */ - ghScope = gwinCreateScope(&gScopeWindow, 0, 0, swidth, sheight, MY_AUDIO_CHANNEL, MY_AUDIO_FREQUENCY); + { + GWindowInit wi; + + wi.show = TRUE; + wi.x = wi.y = 0; + wi.width = swidth; wi.height = sheight; + ghScope = gwinScopeCreate(&gScopeWindow, &wi, MY_AUDIO_CHANNEL, MY_AUDIO_FREQUENCY); + } gwinSetBgColor(ghScope, White); gwinSetColor(ghScope, Red); gwinClear(ghScope); /* Just keep displaying the scope traces */ while (TRUE) { - gwinWaitForScopeTrace(ghScope); + gwinScopeWaitForTrace(ghScope); } } |