Hi,
I see that the purpose of HalLcd_HW_Control is to send a command. However, in the below code, it seems to be telling the LCD which register it would be sending data to. Is this considered a command?
void HalLcd_HW_SetContrast(uint8 value) { SET_ICONRAM_ADDR(CONTRAST_CTRL_REGISTER); HalLcd_HW_Write(value); }
Also, I see in the below, that there is always a hex value OR to the function's parameter. What are these hex values are supposed to represent? A register?
#define SET_DISPLAY_CTRL(options) HalLcd_HW_Control(0x28 | (options)) #define SET_DDRAM_ADDR(charIndex) HalLcd_HW_Control(0x80 | (charIndex)) #define SET_GCRAM_CHAR(specIndex) HalLcd_HW_Control(0xC0 | (specIndex)) #define SET_ICONRAM_ADDR(addr) HalLcd_HW_Control(0x40 | (addr))