Fix double-buffering for spi display (it's actually using double-buffering, now)

This commit is contained in:
JF 2020-03-01 15:57:58 +01:00
parent 179b14f48c
commit e285ba9972
2 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,9 @@ void DisplayApp::Process(void *instance) {
NRF_LOG_INFO("DisplayApp task started!"); NRF_LOG_INFO("DisplayApp task started!");
app->InitHw(); app->InitHw();
// Send a dummy notification to unlock the lvgl display driver for the first iteration
xTaskNotifyGive(xTaskGetCurrentTaskHandle());
while (1) { while (1) {
app->Refresh(); app->Refresh();

View File

@ -62,6 +62,8 @@ void LittleVgl::InitTouchpad() {
} }
void LittleVgl::FlushDisplay(const lv_area_t *area, lv_color_t *color_p) { void LittleVgl::FlushDisplay(const lv_area_t *area, lv_color_t *color_p) {
ulTaskNotifyTake(pdTRUE, 500);
auto x = area->x1; auto x = area->x1;
auto y = area->y1; auto y = area->y1;
auto width = (area->x2-area->x1)+1; auto width = (area->x2-area->x1)+1;