Add RTT_U8G2 macro

This commit is contained in:
wuhanstudio 2021-08-03 18:44:02 +01:00
parent 67aa759332
commit b5d72d73cb
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,6 @@ path += [cwd + '/sys/rt-thread/port']
LOCAL_CCFLAGS = ''
group = DefineGroup('u8g2s', src, depend = [''], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
group = DefineGroup('u8g2s', src, depend = [''], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS, CPPDEFINES=['RTT_U8G2'])
Return('group')

View File

@ -188,7 +188,9 @@ uint8_t u8x8_pgm_read_esp(const uint8_t * addr); /* u8x8_8x8.c */
#define U8X8_USE_PINS
#endif
#ifdef RTT_U8G2
#define U8X8_USE_PINS
#endif
/*==========================================*/
/* U8X8 typedefs and data structures */