News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

www.picgraphic.com

Started by trastikata, Nov 12, 2024, 10:44 PM

Previous topic - Next topic

Fanie

Impressive, well done Dyanko !

I will later look at what and how you did.
The Chinese allow one to upload JPG images you create beforehand to their displays, the buttons and active controls (ie knobs/slides/meters) are then imposed on that.  It then looks very impressive while the processor actually only react to the inputs and output to indicators/meters/graphs.

trastikata

Hi Bob,

QuoteI have installed it in the Library folder C:\Users\Bob\PDS\Library\TftLib which seems to work

I didn't know it would work too if placed there, but every day we learn.

QuoteIn the fonts example you have used PortC.5 for both MISO & MOSI, is this correct or does it matter if I declare separate pins.

It really depends from display to display, some displays have separate MISO and MOSI lines, others have one bi-directional line for both data-in and out. Some don't allow at all reading from the graphic driver IC. But if you are not planning on using sprites or overlay effects, then you don't need to read from display RAM.

QuoteI have cut most of the fonts out as it would not fit in the 18F25K20, in my first project I will only be using numbers so is there a way of only including numbers to save space or does it have to have the whole character set.


You can use any number of fonts or not all, standard size fonts are about hundred, in BDF fonts you have maybe thousand or more to chose from. But you have to convert and crop the unnecessary glyphs. One thing - BDF fonts can not be scaled, therefore you need to convert them to the size you need, more information here:
https://picgraphic.com/TftLibrary2/Ttf_Bdf_Flashexe.html
https://picgraphic.com/TftLibrary2/BDF.html

QuoteOne suggestion for the site, I copied and pasted the Fonts example and it added extra lines in between the others when I pasted it. I wonder if the examples could be added to the downloads section or am I looking in the wrong place.

The site does add new lines between code, but why I don't know. As for the downloading code examples - it is my fault, I messed up the download link code.

At the top of the example page there is a download link, but you need to copy the link and remove the "file:///" string in front of it. Like this:

file:///https://picgraphic.com/TftLibrary2/lib/DemoFonts.rar

becomes

https://picgraphic.com/TftLibrary2/lib/DemoFonts.rar

trastikata

Quote from: Fanie on Jun 08, 2026, 08:53 AMThe Chinese allow one to upload JPG images you create beforehand to their displays, the buttons and active controls (ie knobs/slides/meters) are then imposed on that. 

Thank you Fanie.

Some of the display modules, they are true "TFT display modules" which have built in FLASH memory or graphic processor like LT7680A.

I am using only inexpensive 5$-15$ displays and this is why I have section in the library allowing the user to install FLASH memory which can use hundreds of backgrounds, buttons etc and using the FLASH memory is really fast and the code is optimized for data transfer from FLASH to TFT displays.

Anyway, I plan to add support for SRAM as a frame buffer and the new 4MBit chips from MC are ideal for this since they even allow 320x480 full frame buffer with about 40% of the SRAM left for sprite buffers, which is huge compared to the tiny RAM in PICs. Those buffers can make some very nice visual effects.

But this is for future, first I have to finish (almost done) the EPD section and then back to the TFT ... nevertheless, don't forget this is my hobby project, so no time-frame or deadline guarantee.  :)

D.