Rotate display automatically!
graph LR
ACC["Accelaration sensor MMA7361LC"]
PICO["Raspberry Pi Pico as HID keyboard"]
PC["PC (Linux)"]
ACC -->|Analog signal| PICO
PICO -->|"hotkey to run xrandr"| PC
See more at https://bsky.app/profile/hyrodium.bsky.social/post/3ln6qdv3mbs2j.
For example, you can setup the hotkeys like this in KDE Plasma environment.
Meta+Ctrl+Home:xrandr --output DP-0 --rotate leftMeta+Ctrl+End:xrandr --output DP-0 --rotate rightMeta+Ctrl+Up:xrandr --output DP-0 --rotate normal
Print STL files in display-auto-rotator_3dp directory.
https://www.thingiverse.com/thing:7035134
- Download and write the CircuitPython firmware (https://circuitpython.org/board/raspberry_pi_pico/).
- Copy the following files to pico drive.
CIRCUITPY/lib/adafruit_hid- Copy from https://circuitpython.org/libraries.
CIRCUITPY/code.py- Copy from this repository.
CIRCUITPY/boot.py- Copy from this repository.








