Skip to content

Commit

Permalink
Added support for 128x128 screens in the SH1107 driver (#377)
Browse files Browse the repository at this point in the history
* Added support for 128x128 screens in the SH1107 driver
* update changelog
  • Loading branch information
QuicksandDesignStudio committed Jul 29, 2023
1 parent 442f293 commit eb6d321
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ ChangeLog
+------------+---------------------------------------------------------------------+------------+
| Version | Description | Date |
+============+=====================================================================+============+
| **3.12.0** | * Fix 96x16 OLED panel offset | 2023/03/19 |
| **3.13.0** | * Add support for 128x128 SH1107 | TBD |
+------------+---------------------------------------------------------------------+------------+
| **3.12.0** | * Fix 96x16 OLED panel offset | 2023/03/19 |
+------------+---------------------------------------------------------------------+------------+
| **3.11.0** | * Add support for SH1107 greyscale OLED | 2023/01/26 |
+------------+---------------------------------------------------------------------+------------+
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ Contributors
* George Harker (@georgeharker)
* @Pako2
* Graeme Smecher (@gsmecher)
* Romit Raj (@QuicksandDesignStudio)
Binary file added doc/tech-spec/SH1107V2.1.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion luma/oled/device/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def __init__(self, serial_interface=None, width=64, height=128, rotate=0, **kwar

settings = {
(64, 128): dict(multiplex=0x7F, displayoffset=0x60),
(80, 128): dict(multiplex=0x4F, displayoffset=0x68)
(80, 128): dict(multiplex=0x4F, displayoffset=0x68),
(128, 128): dict(multiplex=0x7F, displayoffset=0x00)
}.get((width, height))

if settings is None:
Expand Down

0 comments on commit eb6d321

Please sign in to comment.