- Fixed SPI to always send Bytearrays
- Added Option to rotate Display
You can rotate the display by either 90, 180 or 270 degrees. Rotating can be done when creating TFT Object
tft = TFT_GREEN(width, height, spi, dc, cs, rst, rotate=90)or during runtime
tft.changeRotate(270)main.py is an example program using the driver.
Configure the wifi of the esp by editing this line
sta.connect("YOUR_SSID_HERE", "YOUR_PASSWORD_HERE")
with your appropiate values. Then use netcat to connect to the esp on port 23:
nc IP_OF_ESP 23
You can now type any text and after hitting Enter the text will be displayed.
You can also rotate the display by sending e.g.
rotation=270
Thanks to hosaka who initially wrote the driver