I'm working on a handheld gaming project using a LS020B1DD01 LCD panel and am looking for a way to control the LCD's brightness via two buttons. From my understanding, the backlight on this panel is just a set of 3 LEDs (datasheet isn't exactly clear)? And from my basic knowledge and research, brightness of LEDs can be controlled by increasing/decreasing resistance or by using a microcontroller and PWM.
I'm leaning towards using a ATtiny85 and PWM since I only want 4 levels of brightness which I think is possible to define on the software side.
Questions:
- How do I interpret the backlight driving conditions in the datasheet to figure out the current limiting resistor?
- From other examples of PWM brightness control, a transistor was used (Control LCD backlight using PWM). What does a transistor do in that application? I'm assuming that I'll need to use this configuration since I'm supplying the LCD with 10V from an external source and not the ATtiny85?
Feel free to ask clarifying questions as I'm sure I haven't explained everything clearly. Thank you!