Because you're using the DOT function anyway and providing a GLCD_Clear_Dot function, this should be a piece of cake to do.
Matt
Added:
Code: Select all
void GLCD_SET_DOT(x,y,color) {
GLCD_data;
GLCD_Goto_XY(x, y-y%8); /* calculate page position*/
data = GLCD_Read_Data();
if(color == BLACK) { /* check color */
data |= 0x01 << (y%8); /* prepare for print dot */
} else {
data &= ~(0x01 << (y%8)); /* prepare for clear dot */
}
GLCD_Write_Data(data); /* write data to GLCD
}