PeterKenyon
PeterKenyon
Thanks for contributing this driver it looks really well written and commented however... Tried this driver with the micropython board and no success yet, 1. micropython seems to have pyb.SPI...
``` python class Spi2(pyb.SPI): def write(self, b): self.send(b) class Hack(TFT_GREEN): def __init__(self): width=128 height=160 spi=Spi2(1,pyb.SPI.MASTER) dc=pyb.Pin('X2', pyb.Pin.OUT) cs=pyb.Pin('X5', pyb.Pin.OUT) rst=pyb.Pin('X4', pyb.Pin.OUT) bl=pyb.Pin('X3', pyb.Pin.OUT) super().__init__(width, height, spi, dc, cs, rst, bl)...
sorry I cant get the damn markdown to do anything sensible.. presumably crapness on my part
thanks, I have actually got it working as you recommend, I just used GHI's C# init code and translated into python. I created a N18 subclass similar to your GREEN_TAB....