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

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

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

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