DogFlu66 Member Jun 7, 2024 #1 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
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.
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Today at 2:45 AM #201 Its in the INIT routine just above the INVON call.. Upvote 0 Downvote
camerart Well-Known Member Today at 3:00 AM #202 Ian Rogers said: Its in the INIT routine just above the INVON call.. Click to expand... 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 Upvote 0 Downvote
Ian Rogers said: Its in the INIT routine just above the INVON call.. Click to expand... 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
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Today at 3:14 AM #203 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.. Upvote 0 Downvote
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..
camerart Well-Known Member Today at 8:47 AM #204 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 Upvote 0 Downvote
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