| 20 | } |
| 21 | |
| 22 | static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() { |
| 23 | auto configuration = std::make_unique<Ft5x06Touch::Configuration>( |
| 24 | I2C_NUM_0, |
| 25 | 319,//LCD_HORIZONTAL_RESOLUTION, |
| 26 | 239//LCD_VERTICAL_RESOLUTION, |
| 27 | ); |
| 28 | |
| 29 | return std::make_shared<Ft5x06Touch>(std::move(configuration)); |
| 30 | } |
| 31 | |
| 32 | std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() { |
| 33 | Ili934xDisplay::Configuration panel_configuration = { |