add LittlevGL demo

add LittlevGL demo on stm32f746 discovery board
This commit is contained in:
supowang
2019-10-12 14:57:31 +08:00
parent c13fb9a1fa
commit 3260ba3161
448 changed files with 103443 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
#include "tos.h"
#include "lvgl/lvgl.h"
#include "tft.h"
#include "touchpad.h"
#include "lv_examples/lv_apps/demo/demo.h"
void application_entry(void *arg)
{
uint8_t i;
for (i = 0; i < 8; i++) {
tos_task_delay(50);
}
lv_init();
tft_init();
touchpad_init();
demo_create();
while (1)
{
tos_task_delay(5);
lv_task_handler();
}
}