Skip to content

Commit

Permalink
wait on first draw after line skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed May 28, 2020
1 parent 7234822 commit 999cdd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/epd_driver/epd_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ static QueueHandle_t output_queue;

// output a row to the display.
static void write_row(uint32_t output_time_dus) {
// avoid too light output after skipping on some displays
if (skipping) {
vTaskDelay(2);
}
skipping = 0;
epd_output_row(output_time_dus);
}
Expand Down Expand Up @@ -418,10 +422,10 @@ void IRAM_ATTR epd_draw_image(Rect_t area, uint8_t *data, enum DrawMode mode) {
memset(line, 255, EPD_WIDTH / 2);
uint8_t frame_count = 15;

vTaskDelay(50);
SemaphoreHandle_t fetch_sem = xSemaphoreCreateBinary();
SemaphoreHandle_t feed_sem = xSemaphoreCreateBinary();
for (uint8_t k = 0; k < frame_count; k++) {

OutputParams p1 = {
.area = area,
.data_ptr = data,
Expand Down

0 comments on commit 999cdd0

Please sign in to comment.