Skip to content

bchanudet/python-st7735s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-st7735s

This simple class allows you to send images to a LCD display driven by a ST7735S Controller, from a Raspbery Pi.

The one I own and do tests on is the 128x128 1.44" HAT from Waveshare. It is plugged on a Raspberry Pi Zero.

The code is compatible with Python 3.5 and up, and heavily inspired by this repository from @jackw01.

Performances

On my Raspberry Pi Zero, the package reaches 5 FPS while doing refresh of the complete display. Performances should be better if I implement like a framebuffer and only update the modified pixels, but honestly 5FPS is all I need for now.

Requirements

  • Pillow : for handling image operations
  • spidev : sending data via SPI
  • RPi.GPIO : handling gpios for sending commands

Usage

>>> import st7735s as Controller
>>> from PIL import Image
>>> screen = Controller.ST7735S()
>>> img = Image.open("assets/test.bmp")
>>> screen.draw(img)

Installation

$ git clone https://github.com/bchanudet/python-st7735s.git
$ cd python-st7735s
# choose one of these two commands:
$ python3 setup.py install -e . # install with a symlink, so you're one git fetch from the last version
$ python3 setup.py install .    # install globally without references to this folder.

About

Simple class for driving a st7735s LCD display in python 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages