Sitelet https://github.com/cheungbx/st7735_micropython/tree/master/ST7735E
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

micropython-st7735-esp8266

Changelog:

  • Fixed SPI to always send Bytearrays
  • Added Option to rotate Display

Rotating

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)

Example

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

Credits

Thanks to hosaka who initially wrote the driver