Update demos slightly.

ugfx_release_2.6
inmarket 2013-09-06 12:22:08 +10:00
parent 05039b6af2
commit b53ab7adf4
3 changed files with 16 additions and 12 deletions

View File

@ -31,9 +31,9 @@
#define _GFXCONF_H
/* The operating system to use - one of these must be defined */
#define GFX_USE_OS_CHIBIOS TRUE
#define GFX_USE_OS_WIN32 FALSE
#define GFX_USE_OS_POSIX FALSE
//#define GFX_USE_OS_CHIBIOS TRUE
//#define GFX_USE_OS_WIN32 FALSE
//#define GFX_USE_OS_POSIX FALSE
/* GFX sub-systems to turn on */
#define GFX_USE_GDISP TRUE

View File

@ -31,9 +31,9 @@
#define _GFXCONF_H
/* The operating system to use - one of these must be defined */
#define GFX_USE_OS_CHIBIOS TRUE
#define GFX_USE_OS_WIN32 FALSE
#define GFX_USE_OS_POSIX FALSE
//#define GFX_USE_OS_CHIBIOS TRUE
//#define GFX_USE_OS_WIN32 FALSE
//#define GFX_USE_OS_POSIX FALSE
/* GFX sub-systems to turn on */
#define GFX_USE_GDISP TRUE
@ -52,4 +52,8 @@
#define GDISP_NEED_ASYNC FALSE
#define GDISP_NEED_MSGAPI FALSE
#define GFX_USE_GMISC TRUE
#define GMISC_NEED_FIXEDTRIG TRUE
#define GMISC_NEED_FASTTRIG TRUE
#endif /* _GFXCONF_H */

View File

@ -40,12 +40,12 @@ int main(void) {
height = gdispGetHeight();
// Code Here
gdispDrawCircle(width/2, height/2, 20, Yellow);
gdispFillCircle (width/4, height/4, 50, Blue);
gdispFillEllipse (width-100, height-100, 30, 60, Red);
gdispDrawEllipse (width-100, height-100, 50, 20, Yellow);
gdispDrawArc(width-width/8, height/8, 30, 10, 70, Gray);
gdispFillArc(width/8, height/8, 30, 10, 70, Gray);
gdispFillArc(width/2, height/2, width/4, -10, -45, White);
gdispDrawCircle(width/2+width/8, height/2-height/8, 13, Green);
gdispFillCircle (width/2+width/8, height/2-height/8, 10, Red);
gdispDrawArc(width/2+width/8, height/2-height/8, 20, 25, 115, Gray);
gdispFillEllipse (width-width/6, height-height/6, width/8, height/16, Blue);
gdispDrawEllipse (width-width/6, height-height/6, width/16, height/8, Yellow);
while(TRUE) {
gfxSleepMilliseconds(500);