A Tray application written in c# that rotates the screen whenever the monitor is rotated.
An Arduino nano with an MPU 6050 sensor is glued with double sided tape to the back of the monitor to detect any motions. If it detects that the monitor is rotated it sends an instruction to the PC via USB which then triggers the application to rotate the display.
All used arduino scripts can be found in the ArduinoScripts
directory.
This is my first application written in c#, so sorry if the code is really messy!