With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Thanks for the feedback.Yes, I did consider that as characters have a lot of long vertical strokes, however the way the TFT's expect data is a raster scan in rows, so a horizontal encoding fits well with this scheme and allows characters to be streamed very quickly.Cheers
A character is drawn as a raster scan within a box size of the characters width and height. The RLE format is a byte, the top bit is a flag, the least significant 7 bits are a 7 bit number (0-127). If the flag is 1 then foreground pixels are plotted, if it is 0 the background pixels are plotted. The number of pixels to plot is the 7 bit number + 1.So, for example, the encoded sequence "0x81, 0x1F" means plot 2 pixels in foreground then 32 pixels in background.A user has sent me a Java app that does the RLE encoding of various font formats but I have not tried it yet. You could manually generate a single character using some squared paper and a pencil and replace the one in the above file.
Hi, thanks for the feedback. Good luck with your project.
If you are still interested then I have finally got around to porting the ILI9341 library to the NodeMCU! Performance is very impressive!You can find a copy of the library here:https://github.com/Bodmer/TFT_ILI9341_ESP
Swap the Font7srle.c file for the one attached.
Images of any significant size take up a lot of space so you would need to look at using an SD card to store them. I have an instructable that may help:http://www.instructables.com/id/Arduino-TFT-displa...
It is not easy to add new fonts due to the way they are encoded for speed.I do plan to update the ILI9341 library soon to add in the Adafruit Free Fonts.
Have you got the DS3231 connected and working with a library example?I have used the "DS3231_Simple" library so that is one I recommend:https://github.com/sleemanj/DS3231_SimpleOnce you have one of the examples running and talking to the DS3231 post back here.
Hi, just noticed this has gone unanswered for a while...Unfortunately I can't help you on this occasion.I suggest you ask for help on the Arduino forum in the "Displays" section. On the forum describe the problem, post a link to the vendor of your display, and post photos of the front and back of your display, this will help folk identify which display driver is on your board and tell you how to get it running.TTFN
OK, thanks.In Arduino land a char is a signed value so it works OK. Since writing the library I have moved on to using different type designations like int16_t, uint16_t etc to make the code more portable and less compiler dependent.In later variants of the library I use Run Length Coding for the larger fonts so less FLASH is needed and also to speed up rendering on windowed plot area displays, but on an STM32 you probably are not bothered about that.Good luck with your project.
Yes, that is correct.See post here:http://forum.arduino.cc/index.php?topic=181679.msg...:-)
A character is drawn as a raster scan within a box size of the characters width and height. The RLE format is a byte, the top bit is a flag, the least significant 7 bits are a 7 bit number (0-127). If the flag is 1 then foreground pixels are plotted, if it is 0 the background pixels are plotted. The number of pixels to plot is the 7 bit number + 1.So, for example, the encoded sequence "0x81, 0x1F" means plot 2 pixels in foreground then 32 pixels in background.
OK, glad to hear it is working. Good luck with your project.
The screen in your eBay link does not have a touch controller fitted, nor is touch screen capability mentioned in the advert. Look at the back of the display, is the place for U1 populated with an integrated circuit?
Designing with Discrete SPI Flash Memory
Arduino TFT display and font library
Arduino BMP180 temperature and pressure sensor readings on a 1.8" colour TFT display
Pulse of the City - Bristol
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.