Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Display TFT ST7789 (OshonSoft Basic).

DogFlu66

Member
I leave the library to use ST7789 TFT display, I have translated one that is in C language. But unfortunately I have not been able to get it to work yet. I leave the files in case someone with more experience with these displays can review it.
 

Attachments

  • Main_ST7789.bas
    1.5 KB · Views: 49
  • ST7789_240X240.bas
    15 KB · Views: 50
  • _SPI_Library.bas
    6 KB · Views: 47
  • _Pic18F26K22Library.bas
    46.4 KB · Views: 46
  • _SetUpAmicus18.bas
    2.9 KB · Views: 51
I am using an Amicus PCB with a Pic18F26K22 microcontroller, the hardware is proven to work because I have downloaded the C language version and the TFT works.

I attach the C library used.
 

Attachments

  • ST7789_240x240.c
    16.3 KB · Views: 41
This example with the basic configuration has been generated by an AI that I have been training for some time. It has not made a single syntax error but it does not work, I upload the files in case someone can review them.
 

Attachments

  • Main ST7789 ChatGPT.bas
    1.4 KB · Views: 47
  • ST7789 ChatGPT_01.bas
    3.5 KB · Views: 46
How different is the ST7735, as on this very web site we did some super fast SPI read/writes
I used the Il92341 and Eric was using the ST7735 the code seemed to be very similar.

I have tried searching but it must be MUCH earlier than I remeber.. Cam was involved.
 
How different is the ST7735, as on this very web site we did some super fast SPI read/writes
I used the Il92341 and Eric was using the ST7735 the code seemed to be very similar.

I have tried searching but it must be MUCH earlier than I remeber.. Cam was involved.
Hi I and D,
First thanks D for starting this thread. I hoped for this.
I have some TFT displays, so I'll see if I can get results.

Here's what I think 'I' was talking about: https://www.electro-tech-online.com/threads/tft-lcd-projects-ideas-applications-open-discussion.152344/

If anyone is particularly interested in Nokia phone screens, Eric produce fonts for them, where he produced a choice of large and small characters also scrolling, but that may be on AAC. I can 'point' to it if asked, although the TFT screens are superior.
Cheers, C.
Here's a wiring diagram for PIC to TFT:
 

Attachments

  • TFT.png
    TFT.png
    50.7 KB · Views: 6
Last edited:
Hi,
It appears that my 'old' tft screens need level shifters, so not a good start.
I've ordered some later SPI ones.
C
Most TFT screens are 3.3V, so you can either run your system at 3.3V, or add a 3.3V/5V converter - or you can buy TFT's with built-in converters, it's not a question of 'age', it's just a question of ordering the correct one for your needs.
 
Most TFT screens are 3.3V, so you can either run your system at 3.3V, or add a 3.3V/5V converter - or you can buy TFT's with built-in converters, it's not a question of 'age', it's just a question of ordering the correct one for your needs.
Hi N,
I used the term 'old' meaning I bought them when I was young.

I ordered new SPI ones, for simplicity.
C
 

Latest threads

New Articles From Microcontroller Tips

Back
Top