From: hackbard Date: Fri, 14 Sep 2007 14:17:42 +0000 (+0200) Subject: display extended (untested!) X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbbb7d4ca12c21c84af2f72f7c75ce7a3559dcad;p=my-code%2Farm.git display extended (untested!) --- diff --git a/betty/display.c b/betty/display.c index ce8fd7c..a439fcd 100644 --- a/betty/display.c +++ b/betty/display.c @@ -50,7 +50,7 @@ void display_fill_screen(u8 fill) { } for(page=0;pagey+h) rmax=y+h; for(col=x;col>1)&1)<>3);page<=((y+8)>>3);page++) { // page = y/8 + DISPLAY_SET_PAGE_ADDR(page); + rmax=(page+1)<<3; // row max + if(rmax>y+left) + rmax=y+left; + cf=0; + for(col=x;col>row)&1) { + c=(ca+cb)>>8; + d[0]&=~(1<>1)&1)<>3);page<=((y+h)>>3);page++) { + DISPLAY_SET_PAGE_ADDR(page); + for(col=x;col>4)) #define DISPLAY_SET_MASTER DISPLAY_CMD=0x18 #define DISPLAY_SET_SLAVE DISPLAY_CMD=0x19 @@ -94,6 +94,10 @@ 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