LCD_RESET();LCD_CTRL = 0xE2;LD LCD_CTRL, #0E2hThis resets all settings to the default state. It’s essentially equivalent to running these in order:
LCD_RMW(OFF) - releases the read/modify/write modeLCD_STATIC(0) - resets the static indicator: (D1, D2) = (0, 0)LCD_SHIFT(0) - initializes the display start lineLCD_COL(0) - resets the column addressLCD_PAGE(0) - resets the page addressLCD_ROW(NORMAL) - resets the common output modeLCD_CONTRAST(32) - resets the electronic volumeLCD_NOP() - releases the test mode