Skip to content

Commit

Permalink
Merge pull request #197 from martinberlin/vroland-master
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
martinberlin committed Jul 18, 2022
2 parents b4c582b + 6aac0c9 commit 3e2c515
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/grayscale_test/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ void loop() {

epd_poweron();
err = epd_hl_update_screen(&hl, MODE_GC16, temperature);
if (err != EPD_DRAW_SUCCESS) {
printf("Error in epd_hl_update_screen:%d\n", err);
}
epd_poweroff();


Expand Down
6 changes: 5 additions & 1 deletion src/epd_driver/i2s_data_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ void i2s_gpio_detach(i2s_bus_config *cfg) {
gpio_set_direction(cfg->clock, GPIO_MODE_INPUT);

gpio_reset_pin(cfg->clock);
rtc_gpio_isolate(cfg->clock);
if (cfg->clock != 5) {
rtc_gpio_isolate(cfg->clock);
}
// https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gpio.html#_CPPv416rtc_gpio_isolate10gpio_num_t
rtc_gpio_isolate(GPIO_NUM_12);
}

void i2s_bus_init(i2s_bus_config *cfg, uint32_t epd_row_width) {
Expand Down

0 comments on commit 3e2c515

Please sign in to comment.