Add LCD backpack support for ESP32 (devkit-c).

This commit is contained in:
Pedro Bertoleti 2021-09-22 15:46:10 -03:00 committed by Alan Carvalho de Assis
parent 2cd4f4af79
commit 64e8322974
1 changed files with 14 additions and 0 deletions

View File

@ -98,6 +98,10 @@
# include "esp32_spi.h"
#endif
#ifdef CONFIG_LCD_BACKPACK
# include "esp32_lcd_backpack.h"
#endif
#include "esp32-devkitc.h"
/****************************************************************************
@ -158,6 +162,16 @@ int esp32_bringup(void)
}
#endif
#ifdef CONFIG_LCD_BACKPACK
/* slcd:0, i2c:0, rows=2, cols=16 */
ret = board_lcd_backpack_init(0, 0, 2, 16);
if (ret < 0)
{
syslog(LOG_ERR, "Failed to initialize PCF8574 LCD, error %d\n", ret);
}
#endif
#ifdef CONFIG_FS_TMPFS
/* Mount the tmpfs file system */