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: 169
  • ST7789_240X240.bas
    15 KB · Views: 153
  • _SPI_Library.bas
    6 KB · Views: 162
  • _Pic18F26K22Library.bas
    46.4 KB · Views: 152
  • _SetUpAmicus18.bas
    2.9 KB · Views: 142
Its in the INIT routine just above the INVON call..
Hi I,
I posted earlier that I had changed INVON to INVOFF to get the correct colours

Just above INVON is:
Call LCD_WRITE_COM(ILI9341_MADCTL)
Call LCD_WRITE_DATA(0x8)
Call LCD_WRITE_COM(ILI9341_INVOFF)'(ILI9341_INVON)

But I don't see any of the ILI9341_MADCTL_?? section used within the program itself, but there is ILI9341_MADCTL used within the program.

Also in #164 there is no ILI9341_MADCTL_MH.

Could you post your latset working program please.

P.S, An alarm has just gone off in the house, and I can smell electrical smoke. It maybe the central heating pump
C
 
Sorry Cam.. write are command.. then data so ..
Call LCD_WRITE_COM(ILI9341_MADCTL)
Call LCD_WRITE_DATA(0x8)

Change the second line to 0x3C tell me what happens..
 
Hi,
Re P.S on #202

I found the problem, it was the starting cap of the central heating pump. Luckily I had a spare, changed it and the heating is back on

Now where was I.
C
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…