diff options
Diffstat (limited to 'boards/base/ArduinoTinyScreen')
-rw-r--r-- | boards/base/ArduinoTinyScreen/gfx/gfxconf.h | 16 | ||||
-rw-r--r-- | boards/base/ArduinoTinyScreen/ugfx_test.ino | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/boards/base/ArduinoTinyScreen/gfx/gfxconf.h b/boards/base/ArduinoTinyScreen/gfx/gfxconf.h index 1a1f8623..117b734c 100644 --- a/boards/base/ArduinoTinyScreen/gfx/gfxconf.h +++ b/boards/base/ArduinoTinyScreen/gfx/gfxconf.h @@ -31,18 +31,18 @@ #define _GFXCONF_H /* The operating system to use. One of these must be defined - preferably in your Makefile */ -//#define GFX_USE_OS_CHIBIOS FALSE -//#define GFX_USE_OS_WIN32 FALSE -//#define GFX_USE_OS_LINUX FALSE -//#define GFX_USE_OS_OSX FALSE -#define GFX_USE_OS_ARDUINO TRUE +//#define GFX_USE_OS_CHIBIOS GFXOFF +//#define GFX_USE_OS_WIN32 GFXOFF +//#define GFX_USE_OS_LINUX GFXOFF +//#define GFX_USE_OS_OSX GFXOFF +#define GFX_USE_OS_ARDUINO GFXON /* GFX sub-systems to turn on */ -#define GFX_USE_GDISP TRUE +#define GFX_USE_GDISP GFXON /* Features for the GDISP sub-system. */ -#define GDISP_NEED_VALIDATION TRUE -#define GDISP_NEED_CLIP TRUE +#define GDISP_NEED_VALIDATION GFXON +#define GDISP_NEED_CLIP GFXON #endif /* _GFXCONF_H */ diff --git a/boards/base/ArduinoTinyScreen/ugfx_test.ino b/boards/base/ArduinoTinyScreen/ugfx_test.ino index 25bbcdef..456dd1fc 100644 --- a/boards/base/ArduinoTinyScreen/ugfx_test.ino +++ b/boards/base/ArduinoTinyScreen/ugfx_test.ino @@ -17,12 +17,12 @@ void setup() { height = gdispGetHeight(); // Code Here - gdispDrawBox(10, 10, width / 2, height / 2, Yellow); - gdispFillArea(width / 2, height / 2, width / 2 - 10, height / 2 - 10, Blue); - gdispDrawLine(5, 30, width - 50, height - 40, Red); + gdispDrawBox(10, 10, width / 2, height / 2, GFX_YELLOW); + gdispFillArea(width / 2, height / 2, width / 2 - 10, height / 2 - 10, GFX_BLUE); + gdispDrawLine(5, 30, width - 50, height - 40, GFX_RED); for (i = 5, j = 0; i < width && j < height; i += 7, j += i / 20) - gdispDrawPixel(i, j, White); + gdispDrawPixel(i, j, GFX_WHITE); #endif } |