# ESP-BOX Example This example shows how to use the `espp::EspBox` hardware abstraction component to automatically detect and initialize components on both the ESP32-S3-BOX and the ESP32-S3-BOX-3. It initializes the touch, display, and audio subsystems. It reads the touchpad state and each time you touch the scren it 1) uses LVGL to draw a circle where you touch, and 2) play a click sound (wav file bundled with the firmware). If you press the home button on the display, it will clear the circles. https://github.com/user-attachments/assets/6fc9ce02-fdae-4f36-9ee7-3a6c347ca1c4 https://github.com/esp-cpp/espp/assets/213467/d5379983-9bc2-4d56-a9fc-9e37f54af15e    ## How to use example ### Hardware Required This example is designed to run on the ESP32-S3-BOX or ESP32-S3-BOX-3. ### Build and Flash Build the project and flash it to the board, then run monitor tool to view serial output: ``` idf.py -p PORT flash monitor ``` (Replace PORT with the name of the serial port to use.) (To exit the serial monitor, type ``Ctrl-]``.) See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects. ## Example Output BOX3:  BOX:  Slow rotation video: https://github.com/user-attachments/assets/6fc9ce02-fdae-4f36-9ee7-3a6c347ca1c4 Fast rotation video: https://github.com/user-attachments/assets/64fd1d71-d6b2-4c4f-8538-4097d4d162e9 Pictures showing the new gravity vector pointing down from the center of the screen:  
To create a project from this example, run:
idf.py create-project-from-example "espp/esp-box=0.21.0:example"