Up to yet, I have never had a requirement to use PWM so know virtually zilch about it. I now have a requirement but have a few questions.
I need to control the brightness of an Adafruit 1.8 TFT display backlight. The display has a ‘lite’ pin on it which it says tie to 3.3v for maximum brightness, or tie to GND or leave unconnected to turn backlight off.
I want to be able to make the brightness user controllable and the data on the TFT display says that the ‘lite’ pin can be controlled with PWM.
Now, what is the best way to do this with the Teensy. I am guessing that I cannot just connect a Teensy PWM pin directly to the ‘lite’ pin and purely issue the commands needed. The display data sheet says that the TFT display consumes around 25ma with the backlight at full brightness and the backlight uses the majority of the power requirement, it doesn’t say what the backlight consumes on it’s own but I am guessing it is far too much for the maximum output of a Teensy PWM pin.
So what is the recommended way of doing this to make it work?
I need to control the brightness of an Adafruit 1.8 TFT display backlight. The display has a ‘lite’ pin on it which it says tie to 3.3v for maximum brightness, or tie to GND or leave unconnected to turn backlight off.
I want to be able to make the brightness user controllable and the data on the TFT display says that the ‘lite’ pin can be controlled with PWM.
Now, what is the best way to do this with the Teensy. I am guessing that I cannot just connect a Teensy PWM pin directly to the ‘lite’ pin and purely issue the commands needed. The display data sheet says that the TFT display consumes around 25ma with the backlight at full brightness and the backlight uses the majority of the power requirement, it doesn’t say what the backlight consumes on it’s own but I am guessing it is far too much for the maximum output of a Teensy PWM pin.
So what is the recommended way of doing this to make it work?