Sonsivri

Electronics => Pic C Languages => Topic started by: max on November 02, 2021, 07:51:51 07:51



Title: PIC C code for tft lcd ?
Post by: max on November 02, 2021, 07:51:51 07:51
Hi,

I want to interface the arduino uno tft lcd module 2.4" and 3.5" type
to pic uc, these modules use the parallel interface.
Is there any lib or c source available for pic?

Regards


Title: Re: PIC C code for tft lcd ?
Post by: mars01 on November 02, 2021, 01:17:27 13:17
Hi,

I want to interface the arduino uno tft lcd module 2.4" and 3.5" type
to pic uc, these modules use the parallel interface.
Is there any lib or c source available for pic?

Regards


Should not be that hard to port an Arduino lib to the PIC uC. All you need is to make sure that you have enough pins and enough RAM to fit the framebuffer into it + whatever you need for the processing.


Title: Re: PIC C code for tft lcd ?
Post by: Old_but_Alive on November 02, 2021, 01:54:49 13:54
try the CCS website, they have loads of code

http://www.ccsinfo.com/forum/viewforum.php?f=2 (http://www.ccsinfo.com/forum/viewforum.php?f=2)

do search on tft

Also try the microchip forums.

best to search on the TFT controller number such as ILI9486, or  ST7783 or or  ILI9325 or SSD2119 etc


This link looks just what your after  http://www.ccsinfo.com/forum/viewtopic.php?t=50520&highlight=tft (http://www.ccsinfo.com/forum/viewtopic.php?t=50520&highlight=tft)








Title: Re: PIC C code for tft lcd ?
Post by: max on November 02, 2021, 06:45:46 18:45
Hi mars01

I have no experiance in c++, arduino libraries uses the c++ code,
is there any guidelines for converting the c++ code to c code.

Regards


Title: Re: PIC C code for tft lcd ?
Post by: Wilksey on November 02, 2021, 07:56:17 19:56
Is it this TFT? https://create.arduino.cc/projecthub/electropeak/arduino-2-4-touch-screen-lcd-shield-tutorial-fe6f05 (https://create.arduino.cc/projecthub/electropeak/arduino-2-4-touch-screen-lcd-shield-tutorial-fe6f05) do you know what driver you particular TFT uses?


Title: Re: PIC C code for tft lcd ?
Post by: max on November 03, 2021, 08:46:38 08:46
Hi Wilksey

Yes this is the lcd I have.
In arduino software to use the 2.4" lcd the ID is 0x9325
for 3.5" lcd the ID is 0x9481
using mcufriends n adafruit graphics lib

Regards


Title: Re: PIC C code for tft lcd ?
Post by: Old_but_Alive on November 03, 2021, 10:04:04 10:04
it looks like it uses the ILI9325 or the ILI9481

try searching on them

I found this on the CCS site, there are 3 hits.

http://www.ccsinfo.com/forum/viewtopic.php?t=50520&highlight=ili9325 (http://www.ccsinfo.com/forum/viewtopic.php?t=50520&highlight=ili9325)

As I said in an earlier reply, the microchip forums will have discussions also


Title: Re: PIC C code for tft lcd ?
Post by: Wilksey on November 03, 2021, 12:00:05 12:00
This Microchip forum post might be of some use: https://www.microchip.com/forums/m542888.aspx?tree=true (https://www.microchip.com/forums/m542888.aspx?tree=true)