Skip to content

Commit b86d1b6

Browse files
authored
Update esp32_smartdisplay.c (#247)
configurable backlight delay
1 parent 3479d90 commit b86d1b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/esp32_smartdisplay.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ void smartdisplay_init()
182182
#endif
183183

184184
lv_init();
185+
#ifdef BCKL_DELAY_MS
186+
vTaskDelay(pdMS_TO_TICKS(BCKL_DELAY_MS));
187+
#endif
185188
// Setup backlight
186189
pinMode(DISPLAY_BCKL, OUTPUT);
187190
digitalWrite(DISPLAY_BCKL, LOW);
@@ -245,4 +248,4 @@ void lvgl_display_resolution_changed_callback(lv_event_t *event)
245248
}
246249
}
247250

248-
#endif
251+
#endif

0 commit comments

Comments
 (0)