Skip to content

Commit

Permalink
Merge pull request #74 from esp-cpp/fix/touchpad
Browse files Browse the repository at this point in the history
fix(touch): Initialize touch after display so it works with lvgl
  • Loading branch information
finger563 committed Jul 4, 2024
2 parents fc6e4ae + 6914637 commit c818b4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions components/box-emu/src/box-emu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ espp::I2c &BoxEmu::external_i2c() {
bool BoxEmu::initialize_box() {
logger_.info("Initializing EspBox");
auto &box = espp::EspBox::get();
// initialize the touchpad
if (!box.initialize_touch()) {
logger_.error("Failed to initialize touchpad!");
return false;
}
// initialize the sound
if (!box.initialize_sound()) {
logger_.error("Failed to initialize sound!");
Expand All @@ -58,6 +53,11 @@ bool BoxEmu::initialize_box() {
logger_.error("Failed to initialize display!");
return false;
}
// initialize the touchpad
if (!box.initialize_touch()) {
logger_.error("Failed to initialize touchpad!");
return false;
}

// initialize the mute button to broadcast the mute state
logger_.info("Initializing mute button");
Expand Down

0 comments on commit c818b4b

Please sign in to comment.