I just tried to use the latest Loboris firmware with SPI TFT 160x128 module (ST7735R).
First of all I've tested my FTF module with Adafruit's Micropython TFT library.
Code: Select all
import st7735
from machine import SPI, Pin
spi = SPI(1, baudrate=10000000, mosi=13, miso=12, sck=14, cs=15)
display = st7735.ST7735R(spi, cs=Pin(15), dc=Pin(27), rst=Pin(26), width=128, height=160)
display.fill(st7735.color565(0xff,0xff, 0xff))
display.fill_rectangle(0,0,20,20, st7735.color565(0xff,0x11, 0x22)) # draws a rectangle
Than i tried to use code from the Loboris firmware with the same hardware setup.
It's listed below.
Code: Select all
import time
import display
tft = display.TFT()
tft.init(tft.ST7735R, speed=10000000, spihost=tft.HSPI, mosi=13, miso=12, clk=14, cs=15, dc=27, rst_pin=26, hastouch=False, bgr=False, width=128, height=160)
tft.clear()
for i in range(9):
tft.pixel(i,i,128)
Thus I got a fail.
Hope my report will be useful.
If you need another test or additional details please feel free to ask.