add lvgl
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "components/lvgl"]
|
||||
path = components/lvgl
|
||||
url = https://github.com/lvgl/lvgl.git
|
1
components/lvgl
Submodule
1
components/lvgl
Submodule
Submodule components/lvgl added at e58e7b6a69
@@ -1,2 +1,3 @@
|
||||
idf_component_register(SRCS "main.c"
|
||||
INCLUDE_DIRS ".")
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES lvgl)
|
1476
main/lv_conf.h
Normal file
1476
main/lv_conf.h
Normal file
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,10 @@
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
|
||||
#define LV_CONF_INCLUDE_SIMPLE 1
|
||||
#include "lv_conf.h"
|
||||
#include "lvgl.h"
|
||||
|
||||
|
||||
#define I2C_SCL 1 /*FIXME*/
|
||||
#define I2C_SDA 2
|
||||
@@ -95,6 +99,8 @@ void init_display(void){
|
||||
void app_main(void){
|
||||
init_i2c();
|
||||
init_display();
|
||||
lv_init();
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user