| 1 | #include "Touch.h" |
| 2 | |
| 3 | std::shared_ptr<Xpt2046Touch> createTouch() { |
| 4 | auto configuration = std::make_unique<Xpt2046Touch::Configuration>( |
| 5 | SPI2_HOST, |
| 6 | GPIO_NUM_38, |
| 7 | 320, |
| 8 | 480 |
| 9 | ); |
| 10 | |
| 11 | return std::make_shared<Xpt2046Touch>(std::move(configuration)); |
| 12 | } |