magician13134
New Member
Hi, I'm trying to interface with an HD44780 LCD, and I've been able to do all the simple things, display characters, clear it, move the cursor back to the home position, etc. But I want to be able to do some more advanced commands, and that's where I'm stuck. I've found a site that has a table of all the commands:
How to control a HD44780-based Character-LCD
But I'm not sure exactly how to use them. The LCD library I'm using has a command write function, so if I do
it will clear the display,
will move the cursor to the home position. But after that, I'm confused. After that, I'm not sure how to get the numbers to use in commandWrite(). For example, if I wanted to turn the display on, turn the cursor on and turn the blink on, how would I do that? I know that command is in DB3, so that would be 0x08, right? Then I would need to do to get the options in that? I've read something about using the OR (|) function... But I'm not really very sure... Thanks!!
How to control a HD44780-based Character-LCD
But I'm not sure exactly how to use them. The LCD library I'm using has a command write function, so if I do
Code:
lcd.commandWrite(0x01);
Code:
lcd.commandWrite(0x02);