Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 committed Aug 15, 2024
1 parent 6e6a61b commit 5e43941
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/espp
13 changes: 11 additions & 2 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ extern "C" void app_main(void) {
logger.error("Could not initialize LCD");
return;
}
static constexpr size_t pixel_buffer_size = hw.lcd_width() * 20;
if (!hw.initialize_display(pixel_buffer_size)) {
logger.error("Could not initialize LCD");
return;
}
if (!hw.initialize_touch()) {
logger.error("Could not initialize touch");
return;
}

std::error_code ec;

Expand Down Expand Up @@ -172,12 +181,12 @@ extern "C" void app_main(void) {
auto display_task = espp::Task::make_unique({
.name = "Display Task",
.callback = display_task_fn,
.stack_size_bytes = 10 * 1024,
.stack_size_bytes = 5 * 1024,
});
display_task->start();

// make the rtsp client
logger.info("Starting server task");
logger.info("Starting RTSP client");
std::atomic<int> num_frames_received{0};
espp::RtspClient rtsp_client({
.server_address = mdns_service_address,
Expand Down

0 comments on commit 5e43941

Please sign in to comment.