A small library to drive an OLED device with either SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1331, SSD1351, SSD1362, SH1106, SH1107 or WS0010 chipset
Project description
luma.core | luma.docs | luma.emulator | luma.examples | luma.lcd | luma.led_matrix | luma.oled
luma.oled
Display drivers for SSD1306 / SSD1309 / SSD1322 / SSD1325 / SSD1327 / SSD1331 / SSD1351 / SSD1362 / SH1106 / SH1107 / WS0010
Python 3 library interfacing OLED matrix displays with the SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107 or WS0010 driver using I2C/SPI/Parallel on the Raspberry Pi and other linux-based single-board computers - it provides a Pillow-compatible drawing canvas, and other functionality to support:
scrolling/panning capability,
terminal-style printing,
state management,
color/greyscale (where supported),
dithering to monochrome
Documentation
Full documentation with installation instructions and examples can be found on https://luma-oled.readthedocs.io.
A list of tested devices can be found in the wiki.
The display pictured below is a SSD1306 (128 x 64 pixels), and the board is tiny enough to fit inside the RPi case.
As well as display drivers for various physical OLED devices, there are emulators that run in real-time (with pygame) and others that can take screenshots, or assemble animated GIFs, as per the examples below (source code for these is available in the luma.examples git repository:
Upgrade
Version 2.0.0 was released on 11 January 2017: this came with a rename of the github project from ssd1306 to luma.oled to reflect the changing nature of the codebase.
Some core functionality has been moved out to another git repository, luma.core: this has enabled another project to have a facelift: pcd8544 has now been reborn as luma.lcd: the same API can now be used across both projects. Likewise max7219 has been renamed to luma.led_matrix so it can also take advantage of the common API.
The consequence is that any existing code that uses the old ssd1306 package will need to be updated. The changes should be limited to altering import statements only, and are described in the upgrade documentation.
License
The MIT License (MIT)
Copyright (c) 2014-2023 Richard Hull and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributing
Pull requests (code changes / documentation / typos / feature requests / setup) are gladly accepted. If you are intending to introduce some large-scale changes, please get in touch first to make sure we’re on the same page: try to include a docstring for any new method or class, and keep method bodies small, readable and PEP8-compliant. Add tests and strive to keep the code coverage levels high.
GitHub
The source code is available to clone at: https://github.com/rm-hull/luma.oled
Contributors
Thijs Triemstra (@thijstriemstra)
Christoph Handel (@fragfutter)
Boeeerb (@Boeeerb)
xes (@xes)
Roger Dahl (@rogerdahl)
Václav Šmilauer (@eudoxos)
Claus Bjerre (@bjerrep)
Vx Displays LLC (@VxGeeks)
Christopher Arndt (@SpotlightKid)
Sascha Walther (@leragequit)
Marcus Kellerman (@sharkusk)
Phil Howard (@gadgetoid)
@wjgeorge
Doug Burrell (@doug-burrell)
Xavier Carcelle (@xcarcelle)
Dhrone (@dhrone)
George Harker (@georgeharker)
@Pako2
Graeme Smecher (@gsmecher)
Romit Raj (@QuicksandDesignStudio)
ChangeLog
Version |
Description |
Date |
---|---|---|
3.14.0 |
|
2024/10/26 |
3.13.0 |
|
2023/08/12 |
3.12.0 |
|
2023/03/19 |
3.11.0 |
|
2023/01/26 |
3.10.0 |
|
2022/11/14 |
3.9.0 |
|
2022/10/19 |
3.8.1 |
|
2020/11/15 |
3.8.0 |
|
2020/11/06 |
3.7.0 |
|
2020/10/25 |
3.6.0 |
|
2020/09/24 |
3.5.0 |
|
2020/07/04 |
3.4.0 |
|
2020/01/19 |
3.3.0 |
|
2019/06/19 |
3.2.1 |
|
2019/04/30 |
3.2.0 |
|
2019/04/17 |
3.1.1 |
|
2019/03/30 |
3.1.0 |
|
2018/12/21 |
3.0.1 |
|
2018/12/21 |
3.0.0 |
|
2018/12/02 |
2.5.1 |
|
2018/09/14 |
2.5.0 |
|
2018/09/07 |
2.4.1 |
|
2018/05/28 |
2.4.0 |
|
2018/04/18 |
2.3.2 |
|
2018/03/03 |
2.3.1 |
|
2017/11/23 |
2.3.0 |
|
2017/10/30 |
2.2.12 |
|
2017/10/18 |
2.2.11 |
|
2017/09/19 |
2.2.10 |
|
2017/05/01 |
2.2.9 |
|
2017/04/22 |
2.2.8 |
|
2017/04/13 |
2.2.7 |
|
2017/04/12 |
2.2.6 |
|
2017/03/30 |
2.2.5 |
|
2017/03/02 |
2.2.4 |
|
2017/02/17 |
2.2.3 |
|
2017/02/14 |
2.2.2 |
|
2017/02/02 |
2.2.1 |
|
2017/01/29 |
2.1.0 |
|
2017/01/22 |
2.0.1 |
|
2017/01/15 |
2.0.0 |
|
2017/01/11 |
1.5.0 |
|
2017/01/09 |
1.4.0 |
|
2016/12/23 |
1.3.1 |
|
2016/12/11 |
1.3.0 |
|
2016/12/11 |
1.2.0 |
|
2016/12/08 |
1.1.0 |
|
2016/12/05 |
1.0.0 |
|
2016/12/03 |
0.3.5 |
|
2016/11/30 |
0.3.4 |
|
2016/11/15 |
0.3.3 |
|
2016/11/15 |
0.3.2 |
|
2016/11/13 |
0.3.1 |
|
2016/11/13 |
0.3.0 |
|
2016/11/13 |
0.2.0 |
|
2016/09/06 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file luma_oled-3.14.0.tar.gz
.
File metadata
- Download URL: luma_oled-3.14.0.tar.gz
- Upload date:
- Size: 16.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36218565eda0614c8cf44ef42cb9a5904ddf808e4516e99ddae111fc93c5a206 |
|
MD5 | 3961cd4f28c2dbd1fe09d7c2d55df2f8 |
|
BLAKE2b-256 | 95a7c5a51d4980a3a4db3b63570731eeac61f2e1142d5462f7e2866ed9d87070 |
File details
Details for the file luma.oled-3.14.0-py2.py3-none-any.whl
.
File metadata
- Download URL: luma.oled-3.14.0-py2.py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a2063242e1732889be9e3508440de728bf5a5dbef8005b64248b8fd1c145fb |
|
MD5 | 2e38010582287d4f13e05326724de03f |
|
BLAKE2b-256 | 08a48bbfef1670dc46105e7c93508b99356e8214f9e75d0ddcf24159b654c61d |