LCD st7735 or other
Posted: Mon Sep 20, 2021 2:44 pm
I don't know if anyone can help me i have tried the lcd module from the link below for the stm7735 lcb and it seems to work for the example below but when you un comment out the line"Tft.WriteStr(50,50,"*")" it locks up at that point.
http://www.firewing.info/pmwiki.php?n=F ... ser.ST7735
any ideas? ps i have tried a second lcd which i had forgotten that i still had but it does the same.
also can anyone recommend a not too expensive lcd that is known to work with the compiler?
Rich
http://www.firewing.info/pmwiki.php?n=F ... ser.ST7735
- Code: Select all
' set high speed clock...
clock = 80
'#option _gccOptimise = O2
#option TFT_MODEL = ST7735
#option TFT_SCK = porte.0'ck26
#option TFT_SDA = porte.1' ck27
#option TFT_RS = porte.2'ck28
#option TFT_RW = porte.3'ck29
#option TFT_CS = porte.4 'ck30
imports Tft
imports TftGraphic
imports FixedFont
sub main()
while true
Tft.Clear()
Tft.SetBrushColor(255, 255, 0)
Tft.FillRect(0, 0, 120, 150)
Tft.SetFont(fixed)
Tft.SetPenColor(255, 255, 255)
'Tft.WriteStr(50,50,"*")
delayms(100)
end while
end sub
end
any ideas? ps i have tried a second lcd which i had forgotten that i still had but it does the same.
also can anyone recommend a not too expensive lcd that is known to work with the compiler?
Rich