Liquid Crystal Display source file.
More...
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_idf_version.h"
#include "esp_lcd.h"
#include "esp_log.h"
Liquid Crystal Display source file.
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2022-08-15
- Copyright
- Copyright (c) 2022
◆ DATA_0_PIN
◆ DATA_1_PIN
◆ DATA_2_PIN
◆ DATA_3_PIN
◆ ENABLE_PIN
◆ GPIO_STATE_HIGH
#define GPIO_STATE_HIGH 1 |
◆ GPIO_STATE_LOW
◆ LCD_CMD
◆ LCD_DATA
◆ REGISTER_SELECT_PIN
#define REGISTER_SELECT_PIN 23 |
◆ 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