mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Add LCD backpack support for ESP32 (devkit-c).
This commit is contained in:
committed by
Alan Carvalho de Assis
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 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user