Driver and examples to ST7735s display in ESP-8266-12E Micropython, originally written by @hosaka.
TFT Display | Esp-8266 |
---|---|
GND | GND |
VCC | VCC 3V |
CS | D4 (GPIO2) |
D/C | D2 (GPIO4) |
RST | D1 (GPIO5) |
SDA | D7 (GPIO13) |
SCL | D5 (GPIO14) |
BLK | VCC 3V |
- 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