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: 177
  • ST7789_240X240.bas
    15 KB · Views: 159
  • _SPI_Library.bas
    6 KB · Views: 170
  • _Pic18F26K22Library.bas
    46.4 KB · Views: 158
  • _SetUpAmicus18.bas
    2.9 KB · Views: 149
If you are referring to the SPI bus it does not need pull-up resistors, and the only pull-up resistor I use is the MCLR pin bias resistor. If you don't use MCLR it is disabled in bit configuration. I was looking for a Pic18F46K20 at home but I don't have one to test.
Hi D,
The Pickit3 uses the MCLR pin, then it is pulled up by the resistor.

If I have spare 18F46K20 I can post one to you if you PM me your address.
C.
 
I said in a previous thread.. When you are using an external MCLRE be wary that the pic NEVER hard boots if you keep the pickit 3 in place.. If you change the driver and then upload without removing power afterwards you only soft boot so "variables" are still intact, and then can give erroneous boots.
Hi I,
I do keep the Pickit3 in place, after reprogramming, is this incorrect?
While developing an internal MCLRE is best.. Once you are happy, by all means swap it back.
?
C.
 
Hi D,
The Pickit3 uses the MCLR pin, then it is pulled up by the resistor.

If I have spare 18F46K20 I can post one to you if you PM me your address.
C.

Thanks for the offer, but I've ordered two Pic18F46K22. Anyway, I recommend you go for the Pic18F46K22, which is very similar and has some of the internal modules duplicated. It also has something very important, and that is that it can work at 3.3 and 5v (1.8 to 5.5v), while the 46K20 only allows you to work at 3.3v (1.8 to 3.6v), at least in the versions I've seen.
 
Thanks for the offer, but I've ordered two Pic18F46K22. Anyway, I recommend you go for the Pic18F46K22, which is very similar and has some of the internal modules duplicated. It also has something very important, and that is that it can work at 3.3 and 5v (1.8 to 5.5v), while the 46K20 only allows you to work at 3.3v (1.8 to 3.6v), at least in the versions I've seen.
Hi D,
As I use the 46K20 with 3.3V exclusively, and there is a second PIC on my PCB. I'll leave it as is.
C
 

Latest threads

New Articles From Microcontroller Tips

Back
Top