rdagger / micropython-ssd1322

MicroPython Display Driver for SSD1322 Grayscale OLED

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MicroPython Display Driver for SSD1322 Grayscale OLED

The library supports drawing lines, shapes, text, sprites and images. All code is documented and there are demo examples. Tested on 5.5 inch green OLED display SPI module with 256x64 resolution using Raspberry Pi Pico W.

Sample XGLCD fonts are included in the fonts folder. Additional fonts can generated from TTF fonts using a free utility called MikroElektronika GLCD Font Creator.

There are sample images in monochrome (monoHMSB) and grayscale (GS4) format. I’ve included python apps in the utils folder to convert images in common formats such as JPEG and PNG to monoHMSB and GS4.

demo_images.py example draws monochrome and grayscale images:

Clovers2

Please note the horizontal bands in the pictures are due to filming issues:

Faces

demo_fonts.py example:

Fonts

demo_grayscale.py example draws 16 different shades of gray:

Grayscale

demo_qr.py example draws a QR code which is readable by phones, tablets and webcams:

QR Code

demo_shapes.py example:

Shapes

About

MicroPython Display Driver for SSD1322 Grayscale OLED

License:MIT License


Languages

Language:Python 100.0%