When we tilt our Smartphone from Portrait to Landscape ... How does it know that we're tilting our phone? Watch what happens when we snoop the Accelerometer Data from #PinePhone @PINE64 with Apache #NuttX RTOS (Real-Time Operating System)
https://www.hackster.io/lupyuen/inside-a-smartphone-accelerometer-pinephone-with-nuttx-rtos-b92b58
#PinePhone's Accelerometer appears as /dev/imu0 on Apache #NuttX RTOS ... Let's read the InvenSense MPU-6050 Accelerometer over I2C
Decoding #PinePhone's Accelerometer Data ... Yep there's an Ambient Temperature Sensor inside the MPU-6050 Accelerometer!
When we tilt #PinePhone from Portrait to Landscape ... Accelerometer X and Y values change significantly
Can we compute the Tilt Angle with #PinePhone's MPU-6050 Accelerometer? Yep, but it gets complicated...
How the MPU-6050 Accelerometer Driver is started ... When Apache #NuttX RTOS boots on #PinePhone