Software for auto-adjusting screen brightness.
Required hardware:
- Digispark ATTiny85
- Photoresistor
Required software:
- .NET Framework 4.6.1+
- Twinkle Tray -used to change brightness
- libusb-win32 driver
- Connect photoresitor to ATTiny85's P2 and GND
- Prepare environment for uploading firmware to Digispark ATTiny85. Useful guide
- Upload LightSensor.ino firmware to your ATTiny85
- Board: Digispark
- Clock: 16.5 MHz - for V-USB
- Micronucleus variant: Recommended
- Install required software
- Add MonitorAutoBrightness.exe --Minimized shortcut to Autorun (shell:startup)
- Adjust settings inside MonitorAutoBrightness.exe.config, if necessary
- Adjust BrightnessLevels.txt (supports "hot reloading")
Fill with key-value pairs (key = sensor value, value = brightness level).
Example:
800 0
900 8
940 8
950 12
960 15
965 22
970 25
975 30
980 55
985 60
990 70
1000 80
1010 90
1023 100