X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fdisplay.c;h=2da19efe9ffa8f4ba42d32bd89c5339c369cfa13;hb=96c6e10b97b3cce49a3c2090108ea29d23ec3950;hp=1248279740118943e249be6c22c505a6e4946963;hpb=e12850bb699b1f9088a72840f3ae93a06326ab67;p=my-code%2Farm.git diff --git a/betty/display.c b/betty/display.c index 1248279..2da19ef 100644 --- a/betty/display.c +++ b/betty/display.c @@ -71,14 +71,15 @@ void display_init(void) { // gray scale palette DISPLAY_SET_WHITE(0,0,0,0); - DISPLAY_SET_LGRAY(3,3,3,3); - DISPLAY_SET_DGRAY(6,6,6,6); + DISPLAY_SET_LGRAY(5,5,5,5); // obviously 3, but it's too bright! + DISPLAY_SET_DGRAY(7,7,7,7); // obviously 6, but again too bright! DISPLAY_SET_BLACK(9,9,9,9); /* normal mode, display depending ram content */ DISPLAY_RAM_CONTENTS_ON; display_clear_screen(); - DISPLAY_NORMAL; + DISPLAY_NORMAL; // 00 -> white, 11 -> black + DISPLAY_SET_COM_ODIR_REMAPPED; // start counting at the top /* switch on the display */ DISPLAY_SET_ON; @@ -133,7 +134,7 @@ void display_draw_rectangle(int x,int y,int w,int h,u8 fill,u8 alpha) { DISPLAY_SET_PAGE_ADDR(p); for(c=x;cy+h?y+h:y+8;