n0xa / m5stick-nemo

M5 Stick C firmware for high-tech pranks
Other
764 stars 157 forks source link

LCD Brightness problems #12

Closed n0xa closed 1 year ago

n0xa commented 1 year ago

When compiling on Windows, the LCD brightness scale for calls to M5.Axp.ScreenBreath() seems to be from 4 to 12. Lower or higher than this range won't impact brightness. When compiling on Linux, the scale seems to be from 0 to 100. The current code base assumes a range of 0-100. It's a known issue, but it's not terribly high priority for me to fix. I don't know if it has to do with the M5Stack libraries, arduino IDE versions or what, just yet. If you have any ideas or fixes, feel free to leave a comment or make a pull request to fix it and I'll evaluate it.

Current binaries available here and on M5Burner are compiled on Linux.

n0xa commented 1 year ago

This got fixed, I think, with the addition of a new boolean near the top of the main ino file: pct_brightness. Though, it seems even on Windows, brightness is now 0-100 after I updated my Arduino IDE and libraries. I may go back and remove this code later.