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: 199
  • ST7789_240X240.bas
    15 KB · Views: 177
  • _SPI_Library.bas
    6 KB · Views: 191
  • _Pic18F26K22Library.bas
    46.4 KB · Views: 179
  • _SetUpAmicus18.bas
    2.9 KB · Views: 168
Hi,
You may have followed my other threads, where I prove that I'm not a natural programmer, and on the main other thread, after 5 years of development, I failed to finalise it.
This thread is going the same way for me.
It seems like we all have a different way of programming, that I find simply to hard to follow everybody.

I'm going to drop out of this one, as it just too hard for me.
As you can see from my posts here, I have programs working using others CODE along with mine. I'll just play with these is my simple way and see what I can do.

Thanks for all of your efforts.
C
 
Hi,
You may have followed my other threads, where I prove that I'm not a natural programmer, and on the main other thread, after 5 years of development, I failed to finalise it.
This thread is going the same way for me.
It seems like we all have a different way of programming, that I find simply to hard to follow everybody.

I'm going to drop out of this one, as it just too hard for me.
As you can see from my posts here, I have programs working using others CODE along with mine. I'll just play with these is my simple way and see what I can do.

Thanks for all of your efforts.
C
What is not working for you?. Have you tried the example (thread #267) that I posted for TFT ILI9341 with Pic18F46K20 microcontroller?.
If it does not work for you, I recommend that you update the Oshonsoft Pic Basic.

The example works with a 32Mhz oscillator and an 8Mhz SPI bus, in case your display does not work with the 8Mhz SPI bus (your display is slower) you can lower the speed to 2Mhz by changing:
Call LCD_SPI1_Init(LCD_SPI_MODE2, LCD_SPI_MASTER_SPEED0 | LCD_SPI_ENABLE) 'CLK 8Mhz (32Mhz) by Call LCD_SPI1_Init(LCD_SPI_MODE2, LCD_SPI_MASTER_SPEED1 | LCD_SPI_ENABLE) 'CLK 2Mhz (32Mhz)

Which card should I use anyway?.
 
Last edited:

New Articles From Microcontroller Tips

Back
Top