docs
This commit is contained in:
parent
4dd54fee0e
commit
07df60eb49
|
@ -108,7 +108,7 @@ static void lcd_HD44780_write(uint8_t data) {
|
||||||
// LCD Pin E -> P2
|
// LCD Pin E -> P2
|
||||||
|
|
||||||
// todo: finish all this stuff
|
// todo: finish all this stuff
|
||||||
// i2cAcquireBus(&I2CD1);
|
i2cAcquireBus(&I2CD1);
|
||||||
//
|
//
|
||||||
// txbuf[0] = 4;
|
// txbuf[0] = 4;
|
||||||
// i2cMasterTransmit(&I2CD1, LCD_PORT_EXP_ADDR, txbuf, 1, NULL, 0);
|
// i2cMasterTransmit(&I2CD1, LCD_PORT_EXP_ADDR, txbuf, 1, NULL, 0);
|
||||||
|
@ -117,7 +117,7 @@ static void lcd_HD44780_write(uint8_t data) {
|
||||||
// txbuf[0] = 0;
|
// txbuf[0] = 0;
|
||||||
// i2cMasterTransmit(&I2CD1, LCD_PORT_EXP_ADDR, txbuf, 1, NULL, 0);
|
// i2cMasterTransmit(&I2CD1, LCD_PORT_EXP_ADDR, txbuf, 1, NULL, 0);
|
||||||
//
|
//
|
||||||
// i2cReleaseBus(&I2CD1);
|
i2cReleaseBus(&I2CD1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,6 +186,7 @@ void lcd_HD44780_init(Logging *sharedLogger) {
|
||||||
|
|
||||||
if (engineConfiguration->displayMode > DM_HD44780_OVER_PCF8574) {
|
if (engineConfiguration->displayMode > DM_HD44780_OVER_PCF8574) {
|
||||||
warning(CUSTOM_ERR_DISPLAY_MODE, "Unexpected displayMode %d", engineConfiguration->displayMode);
|
warning(CUSTOM_ERR_DISPLAY_MODE, "Unexpected displayMode %d", engineConfiguration->displayMode);
|
||||||
|
// I2C pins need initialization, code needs more work & testing
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue