X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fdisplay.h;h=df371ac4eb67efa361a948e3f49381e7cf466732;hb=e12850bb699b1f9088a72840f3ae93a06326ab67;hp=0926655303ac98fdcd4b3883f3ec9fcca067055a;hpb=ec21607f7dc421c6a474d93b90e9045ec465a222;p=my-code%2Farm.git diff --git a/betty/display.h b/betty/display.h index 0926655..df371ac 100644 --- a/betty/display.h +++ b/betty/display.h @@ -65,9 +65,9 @@ DISPLAY_CMD=(((b)&0x0f)<<4|((a)&0x0f)); \ DISPLAY_CMD=0x8d; \ DISPLAY_CMD=(((d)&0x0f)<<4|((c)&0x0f)) -#define DISPLAY_SET_BLACK(a,b,c,d) DISPLAY_CMD=0x88; \ +#define DISPLAY_SET_BLACK(a,b,c,d) DISPLAY_CMD=0x8e; \ DISPLAY_CMD=(((b)&0x0f)<<4|((a)&0x0f)); \ - DISPLAY_CMD=0x89; \ + DISPLAY_CMD=0x8f; \ DISPLAY_CMD=(((d)&0x0f)<<4|((c)&0x0f)) #define DISPLAY_SET_PWM_FRC(p,f) DISPLAY_CMD=(0x90| \ (((f&0x01)<<2)|(p&0x03))) @@ -94,9 +94,19 @@ DISPLAY_CMD=(c) #define DISPLAY_EXTENDED_FEATURES DISPLAY_CMD=0xf0 +/* display api specific defines */ +#define DISPLAY_FILL_W 0x00 +#define DISPLAY_FILL_LG 0x01 +#define DISPLAY_FILL_DG 0x02 +#define DISPLAY_FILL_B 0x03 + + /* function prototypes */ +void display_fill_screen(u8 fill); +void display_clear_screen(void); void display_init(void); void display_load_logo(u8 *src); +void display_draw_rectangle(int x,int y,int w,int h,u8 fill,u8 alpha); void display_bl_init(void); void display_bl_toggle(void); void display_bl_on(void);