A python script to read the output of a MMA8452Q and rotate the display on the Raspberry PI. The script uses the smbus python module to communicate via I2C to a MMA8452Q chip (https://www.nxp.com/docs/en/data-sheet/MMA8452Q.pdf ). It enables the Portrait/Landscape Status Register mode on the chip and issues xrandr rotate commands when a rotation is reported by the chip.
-
Notifications
You must be signed in to change notification settings - Fork 1
A python script to read the output of a MMA8452Q and rotate the display on the Raspberry PI
License
alfred-reynolds/raspberrypi-imu-rotation
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A python script to read the output of a MMA8452Q and rotate the display on the Raspberry PI
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published