Update demos slightly.
This commit is contained in:
parent
05039b6af2
commit
b53ab7adf4
3 changed files with 16 additions and 12 deletions
|
@ -31,9 +31,9 @@
|
||||||
#define _GFXCONF_H
|
#define _GFXCONF_H
|
||||||
|
|
||||||
/* The operating system to use - one of these must be defined */
|
/* The operating system to use - one of these must be defined */
|
||||||
#define GFX_USE_OS_CHIBIOS TRUE
|
//#define GFX_USE_OS_CHIBIOS TRUE
|
||||||
#define GFX_USE_OS_WIN32 FALSE
|
//#define GFX_USE_OS_WIN32 FALSE
|
||||||
#define GFX_USE_OS_POSIX FALSE
|
//#define GFX_USE_OS_POSIX FALSE
|
||||||
|
|
||||||
/* GFX sub-systems to turn on */
|
/* GFX sub-systems to turn on */
|
||||||
#define GFX_USE_GDISP TRUE
|
#define GFX_USE_GDISP TRUE
|
||||||
|
|
|
@ -31,9 +31,9 @@
|
||||||
#define _GFXCONF_H
|
#define _GFXCONF_H
|
||||||
|
|
||||||
/* The operating system to use - one of these must be defined */
|
/* The operating system to use - one of these must be defined */
|
||||||
#define GFX_USE_OS_CHIBIOS TRUE
|
//#define GFX_USE_OS_CHIBIOS TRUE
|
||||||
#define GFX_USE_OS_WIN32 FALSE
|
//#define GFX_USE_OS_WIN32 FALSE
|
||||||
#define GFX_USE_OS_POSIX FALSE
|
//#define GFX_USE_OS_POSIX FALSE
|
||||||
|
|
||||||
/* GFX sub-systems to turn on */
|
/* GFX sub-systems to turn on */
|
||||||
#define GFX_USE_GDISP TRUE
|
#define GFX_USE_GDISP TRUE
|
||||||
|
@ -52,4 +52,8 @@
|
||||||
#define GDISP_NEED_ASYNC FALSE
|
#define GDISP_NEED_ASYNC FALSE
|
||||||
#define GDISP_NEED_MSGAPI FALSE
|
#define GDISP_NEED_MSGAPI FALSE
|
||||||
|
|
||||||
|
#define GFX_USE_GMISC TRUE
|
||||||
|
#define GMISC_NEED_FIXEDTRIG TRUE
|
||||||
|
#define GMISC_NEED_FASTTRIG TRUE
|
||||||
|
|
||||||
#endif /* _GFXCONF_H */
|
#endif /* _GFXCONF_H */
|
||||||
|
|
|
@ -40,12 +40,12 @@ int main(void) {
|
||||||
height = gdispGetHeight();
|
height = gdispGetHeight();
|
||||||
|
|
||||||
// Code Here
|
// Code Here
|
||||||
gdispDrawCircle(width/2, height/2, 20, Yellow);
|
gdispFillArc(width/2, height/2, width/4, -10, -45, White);
|
||||||
gdispFillCircle (width/4, height/4, 50, Blue);
|
gdispDrawCircle(width/2+width/8, height/2-height/8, 13, Green);
|
||||||
gdispFillEllipse (width-100, height-100, 30, 60, Red);
|
gdispFillCircle (width/2+width/8, height/2-height/8, 10, Red);
|
||||||
gdispDrawEllipse (width-100, height-100, 50, 20, Yellow);
|
gdispDrawArc(width/2+width/8, height/2-height/8, 20, 25, 115, Gray);
|
||||||
gdispDrawArc(width-width/8, height/8, 30, 10, 70, Gray);
|
gdispFillEllipse (width-width/6, height-height/6, width/8, height/16, Blue);
|
||||||
gdispFillArc(width/8, height/8, 30, 10, 70, Gray);
|
gdispDrawEllipse (width-width/6, height-height/6, width/16, height/8, Yellow);
|
||||||
|
|
||||||
while(TRUE) {
|
while(TRUE) {
|
||||||
gfxSleepMilliseconds(500);
|
gfxSleepMilliseconds(500);
|
||||||
|
|
Loading…
Add table
Reference in a new issue