Liquid Crystal Display header file.
More...
#include "driver/gpio.h"
Go to the source code of this file.
Liquid Crystal Display header file.
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2022-08-15
- Copyright
- Copyright (c) 2022
◆ LCD_DATA_LINE
◆ LCD_FAIL
◆ LCD_OK
◆ lcd_err_t
◆ lcd_state_t
Enumerator |
---|
LCD_INACTIVE | LCD inactive
|
LCD_ACTIVE | LCD active
|
LCD_INACTIVE | LCD inactive
|
LCD_ACTIVE | LCD active
|
LCD_INACTIVE | LCD inactive
|
LCD_ACTIVE | LCD active
|
◆ assert_lcd()
◆ lcdClear()
Clear LCD screen Detailed description starts here.
- Parameters
-
- Returns
- lcd error status
- See also
- lcd_err_t
◆ lcdCtor()
void lcdCtor |
( |
lcd_t * |
lcd, |
|
|
gpio_num_t |
data[LCD_DATA_LINE], |
|
|
gpio_num_t |
en, |
|
|
gpio_num_t |
regSel |
|
) |
| |
LCD constructor.
Detailed description starts here
- Parameters
-
lcd | pointer to LCD object |
data | lcd data array |
en | lcd en |
regSel | register select |
- Returns
- None
◆ lcdDefault()
void lcdDefault |
( |
lcd_t *const |
lcd | ) |
|
LCD default constructor.
- Parameters
-
- Note
- This function call will use hardcode pins. If you want to use custom pins
- See also
- lcd_ctor
- Returns
- None
◆ lcdFree()
void lcdFree |
( |
lcd_t *const |
lcd | ) |
|
Reset pins to default configuration.
Freeing GPIO pins.
- Parameters
-
- Note
- This function will set GPIO pins to reset configuration, disabling the LCD.
- See also
- gpio_reset_pin()
◆ lcdInit()
void lcdInit |
( |
lcd_t *const |
lcd | ) |
|
Initialize LCD object.
- Parameters
-
- Note
- Must constructor LCD object.
- See also
- lcd_ctor() and
-
lcd_default()
- Returns
- None
◆ lcdSetInt()
Set integer.
Detailed description starts here
- Parameters
-
lcd | pointer to LCD object |
val | integer value to be displayed |
x | location at x-axis |
y | location at y-axis |
- Returns
- lcd error status
- See also
- lcd_err_t
◆ lcdSetText()
Set text.
Detailed description starts here
- Parameters
-
lcd | pointer to LCD object |
text | string text |
x | location at x-axis |
y | location at y-axis |
- Returns
- lcd error status
- See also
- lcd_err_t