From e5cc008cc7c8e8de772e009404f6b58bd508643b Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Fri, 2 Oct 2015 03:46:44 -0400 Subject: [PATCH] Code cleanup/commenting Signed-off-by: Collin J. Doering --- lcdLib.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lcdLib.c b/lcdLib.c index 5e38cd9..8e66f59 100644 --- a/lcdLib.c +++ b/lcdLib.c @@ -307,9 +307,19 @@ void initLCD (void) { flashLED(5); // DEBUG } +/* + Initialize LCD using the internal reset circuitry. + + Note: This currently only works with 8 bit modes, but is not recommended. Instead use the + initLCD function which uses the software initialization method and works for 8-bit + modes as well the 4-bit mode. + */ void initLCDByInternalReset(void) { enableLCDOutput(); + + // Function set (8-bit interface; 2 lines with 5x7 dot character font) writeLCDInstr_(INSTR_FUNC_SET | (1 << INSTR_FUNC_SET_DL) | (1 << INSTR_FUNC_SET_N)); + writeLCDInstr_(0x0F); writeLCDInstr_(0x06); writeLCDInstr_(CMD_CLEAR_DISPLAY);