X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fdisplay.h;h=b10835a0fa560ef9d3ec75103cb7daf6900b2554;hb=dbbb7d4ca12c21c84af2f72f7c75ce7a3559dcad;hp=bed4b7012de8a4126ae05805738a269d082bbae1;hpb=800e17e9826d024a38edb45b59de7953394002d2;p=my-code%2Farm.git diff --git a/betty/display.h b/betty/display.h index bed4b70..b10835a 100644 --- a/betty/display.h +++ b/betty/display.h @@ -24,7 +24,7 @@ #define DISPLAY_RAM_CONTENT (DISPLAY_PAGE_MAX*DISPLAY_COL_MAX*2) /* display cmds */ -#define DISPLAY_SET_C_ADDR(c) DISPLAY_CMD=(0x00|((c)&0x0f)); \ +#define DISPLAY_SET_COL_ADDR(c) DISPLAY_CMD=(0x00|((c)&0x0f)); \ DISPLAY_CMD=(0x10|(((c)&0x70)>>4)) #define DISPLAY_SET_MASTER DISPLAY_CMD=0x18 #define DISPLAY_SET_SLAVE DISPLAY_CMD=0x19 @@ -94,11 +94,23 @@ DISPLAY_CMD=(c) #define DISPLAY_EXTENDED_FEATURES DISPLAY_CMD=0xf0 +/* experimental cmds */ +#define DISPLAY_SET_READ_MODIFY_WRITE DISPLAY_CMD=0xe0; +#define DISPLAY_UNSET_READ_MODIFY_WRITE DISPLAY_CMD=0xee; + +/* 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);