Hi, im a beginner with both programming boards and coding with Arduino IDE, i have an esp-32-S3 ([https://www.waveshare.com/esp32-s3-lcd-3.16.htm]), over the past few days, i have been trying to get the LVGL demo working, which was provided on waveshare's wiki for my device, yesterday, after lots of modifications to the lvgl library, i have got it displaying. Anyway, i was wondering if i could get any help or pointed in the right direction on how to program a pitch an inclometer ( shows pitch and roll, i.e rotation ) of the screen. I have already got the graphics i want to be shown, but the tutorial i was following uses an external sensor, i would like to just use the internal IMU sensor of my esp. sorry if i have worded this complicated but i hope you understand what im asking. EDIT: here is the tutorial i was hoping to follow ([https://www.youtube.com/watch?v=GosqWcScwC0&t=698s&ab_channel=upir]), the file for the screen is just a drawing, with different layers, each with different rotations of the vehicle, it is uploaded below. Also the IMU is a qmi8658 (edited)
It is very simple to measure the tilt angles pitch and roll using an accelerometer.
One of many tutorials
There is a six-axis (not 9 if that matters) IMU, but it is most likely used for the 'Landscape Display via Software Config'. Have you verified you can access it?
If You extract and post schematics and code more helpers will join Your post.