works now and is tested.. but needs cleanup!!

This commit is contained in:
2025-06-18 16:15:19 +02:00
parent b1559460ee
commit a9b4431d67
2 changed files with 68 additions and 3 deletions

View File

@@ -23,9 +23,11 @@ typedef enum {
LCD_HD44780_RETURN_HOME = 0x2,
LCD_HD44780_ENTRY_MODE = 0x6,
LCD_HD44780_DISP_ONOFF_CTL = 0xE,
LCD_HD44780_DISPLAY_ON_CURSOR_ON_BLINK_ON = 0x0F,
LCD_HD44780_CURSOR_SHIFT = 0x6,
LCD_HD44780_FUNCTION_SET = 0x30,
}hd44780_cmd_t;
typedef enum{
@@ -86,5 +88,9 @@ typedef struct{
void lcd_hd44780_init(cm_lcd_hd44780_t *inst,lcd_hd44780_bitmode bit_mode);
void lcd_hd44780_regGpioEvt(cm_lcd_hd44780_t *inst, setGet_Gpio_Event_fpt getGpioEvt_fpt);
void lcd_hd44780_regWaitEvt(cm_lcd_hd44780_t *inst, wait_ms_Event_fpt waitEvt_fpt);
void lcd_hd44780_cursorHome(cm_lcd_hd44780_t *inst);
void lcd_hd44780_printf(cm_lcd_hd44780_t *inst, char *string);
void lcd_hd44780_clearDisp(cm_lcd_hd44780_t *inst);
void lcd_hd44780_print_xy(cm_lcd_hd44780_t *inst, uint8_t x, uint8_t y, const char *str);
#endif /*LCD_HD44780_H_*/