Hmm, looks like I need to add "setCursor". Here's the Arduino code
void LiquidCrystal::setCursor(uint8_t col, uint8_t row)
{
int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
if ( row > _numlines ) {
row = _numlines-1; // we count rows starting w/0
}
command(LCD_SETDDRAMADDR | (col + row_offsets[row]));
}
The MSP430 version ought to look something like:
void HD44780_setCursor(HD44780 *me, uint8_t col, uint8_t row)) {
int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
if ( row > me->_numlines ) {
row = me->_numlines-1; // we count rows starting w/0
}
HD44780_command(me, LCD_SETDDRAMADDR | (col + row_offsets[row]));
}
Anyone want to try it (and debug) before I do?