Skip to content

Commit

Permalink
Fix esp-idf carousel build
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Jul 9, 2024
1 parent 6750a45 commit 7734430
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/carousel/esp-idf/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ extern "C" void app_main(void)
.max_transfer_sz = DRAW_BUF_SIZE * sizeof(uint16_t),
};
bsp_display_new(&bsp_disp_cfg, &panel_handle, &io_handle);
#if defined(EXAMPLE_TARGET_S3_BOX)
esp_lcd_touch_handle_t touch_handle = NULL;
#if defined(EXAMPLE_TARGET_S3_BOX)
const bsp_touch_config_t bsp_touch_cfg = {};
bsp_touch_new(&bsp_touch_cfg, &touch_handle);
#else
std::optional<esp_lcd_touch_handle_t> touch_handle;
#endif

/* Set display brightness to 100% */
Expand Down

0 comments on commit 7734430

Please sign in to comment.