STC32G ֲ°uGFX2.9 ϸ

1.ĵuGFX2.9ѹ󣬷Ŀļ£ļ

\ugfx_2.9\src\gfx_mk.c

\ugfx_2.9\drivers\gdisp\KS0108\gdisp_lld_KS0108.c  ʹĿѡ


2. uGFXṩļļ \ugfx_2.9\gfxconf.example.h Ϊ gfxconf.h  ãȻļ


3. uGFXṩLCDӲӿڷļ\ugfx_2.9\drivers\gdisp\KS0108\board_KS0108_example.h

ʹĿѡ񣩡Ϊboard_KS0108.há


4. ᵽĿ¼ĿͷļĿ¼򲻵ͷļ


5. д board_KS0108.h ṩLCDײӿڡõĺֻ4òĿɾ鿴ļ

ʾuGFXṩһӿڷ籾е board_KS0108_example.h 

еĴȻӦӲ˼·ĺ˼·ȥԼĽӿڡ



6. ޸ļ gfxconf.hѡȽ϶, ˵ףhttp://wiki.ugfx.io  Բ



7. ڿԱˣ һٶerrorٸwarningеţ


󲿷ʱ䶼ڴerrorwarning


һֱ뱨


ȱٷֺţǹ⣬Ϊֲȷȷԣӷֺżɣ

typedef signed   short                gI16

typedef unsigned short        gU16

typedef signed   short                gI16

typedef unsigned short        gU16


ദظͣ磺
typedef gU8                uint8_t;
typedef unsigned char uint8_t;
һ


error C318: can't open file <stdbool.h>  ޷ļ

#define        true        1
#define        false        0



ؼͻ    databoolbitcode sbit ȵıKeilC251ؼֳͻdata滻Ϊ_data_ ........滻



error C25: ʾ֪ΪԴжһţɾżɡ

GFXINLINE void KS0108_goto(GDisplay* g, )


ؼinlineKeilC251inlineֲ֧ãͷļ gfxconf.hпƲʹinlineĲףλĵֶɾ



뱨Ĵ


warning C2   ñԤֱע

warning C138  дʽ  (void)xxx;  ĺ if(xxx);

warning C46: storage class 'register' ignored  ɾregisterؼ

warning C188: ݵǿת

warning C30 ȥһconstؼ֡