@peekay123, is there any updated doc or example on how to config PWM duty cycle as you mention above? By controlling a transistor, I will be able only to turn on or off the LED. I am thinking to test out with a PWM duty cycle to see if I can control the voltage of an output pin that might do the trick.
@sheng, controlling the on/off duty cycle of a LED through a transistor WILL control its brightness. LEDs are current devices and using PWM changes the average current to the LED, thus controlling its brightness. Driving the LEDs of the display canāt be done directly from a GPIO pin since it can only supply a max of 20ma. Using a transistor will allow for more current (50-100ma) to drive the backlight LEDs.
The mod you need to make for the space char width is the first entry of the descriptor table for that character (space).
15 posts were split to a new topic: What display type to use (LCD, TFT, OLED, eInk, ā¦)
@peekay123 and @ScruffR, thank you for the information. @peekay123, sorry about going off the topic. If I have more question I will create a new topic. Thanks again.
@peekay123, by any chance, do you have a seven segment font or instruction on how to generate it? I been looking at the dot factory but I was not able to find it there. I am trying to generate size for 18, 26, 72. I am trying to test out which font looks better on tft screen. Any advice will be grateful.
@RWB may have something to contribute (?) The trick is to find a True Type font that you can convert.
@peekay123, I was reading adafruit gfx font guild on adding new fonts. It suggest a tool call fontconvert on the Adding New Fonts section that could convert true type vector fonts to a .h font file that work with Adafruit_GFX. But I was thinking, what modification do I need to make it work on Adafruit_mfGFX?
@sheng, Adafruitās tool only runs on Linux, is poorly documented and is not compatible with mfGFX font data structures. If it worked on Windows, I would have ported the new GFX library a long time ago!
I found all my fonts on these websites and used Dot Factory to convert to .H data files.
You can try to download the Dot factory from this link http://www.eran.io/the-dot-factory-an-lcd-font-and-image-generator/
It downloaded and installed just fine for me.
If your using color TFT LCD Screens considering using the 4D systems displays because their PC programming software makes it a breeze to add custom fonts, images, and touch screen interfaces.
@RWB, How did you import the fonts into Dot Factory? I am using Dot Factory v.0.1.4 but I donāt see an option to import new font. On the Input section, I only see Text and Image but the Text option does not allow me to pick the location of new font.
@peekay123, Thank you for the info, you save me from bang my head trying to figure the Adafruitās tool and porting.
@RWB, LOL I solve my question. I didnt know I can install ttf. After installing the new font, I can see it in Dot Factory.
@peekay123 and @RWB Thanks for the help