Skip to content

Commit e1a5b72

Browse files
committed
fix: fix build and config for box configuration
1 parent a8903a8 commit e1a5b72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/box-emu-hal/include/box.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ using DisplayDriver = espp::St7789;
4747

4848
// touch
4949
static constexpr bool touch_swap_xy = false;
50-
static constexpr bool touch_invert_x = false;
50+
static constexpr bool touch_invert_x = true;
5151
static constexpr bool touch_invert_y = false;
5252
static constexpr gpio_num_t touch_interrupt = GPIO_NUM_3;
5353
using TouchDriver = espp::Tt21100;

components/box-emu-hal/src/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void init_input() {
4747
std::placeholders::_2, std::placeholders::_3),
4848
#endif
4949
#if TOUCH_DRIVER_USE_READ
50-
.read = std::bind(&espp::I2c::read_at_register, internal_i2c.get(), std::placeholders::_1,
50+
.read = std::bind(&espp::I2c::read, internal_i2c.get(), std::placeholders::_1,
5151
std::placeholders::_2, std::placeholders::_3),
5252
#endif
5353
#if TOUCH_DRIVER_USE_WRITE_READ

0 commit comments

Comments
 (0)