this code does not give expected result :
Code: Select all
GLCD_set_side(x) ;
GLCD_set_x(x % 64) ;
GLCD_set_page(y) ;
*map++ = GLCD_read_data() ;
to fix, read GLCD once for nothing :
Code: Select all
GLCD_set_side(x) ;
GLCD_set_x(x % 64) ;
GLCD_set_page(y) ;
GLCD_read_data() ; // now it works
*map++ = GLCD_read_data() ;