Add LCD backpack support for ESP32 (devkit-c).
This commit is contained in:
parent
2cd4f4af79
commit
64e8322974
|
@ -98,6 +98,10 @@
|
||||||
# include "esp32_spi.h"
|
# include "esp32_spi.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_LCD_BACKPACK
|
||||||
|
# include "esp32_lcd_backpack.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "esp32-devkitc.h"
|
#include "esp32-devkitc.h"
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -158,6 +162,16 @@ int esp32_bringup(void)
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
#ifdef CONFIG_FS_TMPFS
|
||||||
/* Mount the tmpfs file system */
|
/* Mount the tmpfs file system */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue