From 5eafeed7f7951220885c23810d91d201c17d06f6 Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Sat, 2 Sep 2023 11:21:21 +0100 Subject: [PATCH] Document user contributed drivers. --- DISPLAYS.md | 11 ++++++++++- drivers/epaper/epd29_ssd1680.py | 4 ++++ drivers/epaper/package.json | 1 + drivers/st7567s/package.json | 7 +++++++ drivers/st7567s/st7567s.py | 7 +++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 drivers/st7567s/package.json diff --git a/DISPLAYS.md b/DISPLAYS.md index 494b377..8e880dd 100644 --- a/DISPLAYS.md +++ b/DISPLAYS.md @@ -19,6 +19,7 @@ Width and height are pixels. | 1.12GS | 96 | 96 | OLED | [SSD1327][11d] | [Seeed 104030011][21m] | Obsolescent. | | 1.27C | 128 | 96 | OLED | [SSD1351][2d] | [Adafruit 1673][2m] | | | 1.5C | 128 | 128 | OLED | [SSD1351][2d] | [Adafruit 1431][3m] | | +| 1.4M | 128 | 64 | LCD | [SSD7567s][16d]| [ST7567s][27m] | Similar to SSD1306 | | 1.44C | 128 | 128 | TFT | [ST7735R][4d] | [Adafruit 2088][5m] | | | 1.5C | 160 | 128 | TFT | [ST7735R][4d] | [Adafruit 358][6m] | | | 1.3C | 240 | 240 | TFT | [ST7789][5d] | [Adafruit 4313][7m] | | @@ -59,6 +60,13 @@ AKA [KeyStudio](https://wiki.keyestudio.com/Ks0056_keyestudio_1.3%22_128x64_OLED Nokia 5110 (PCD8544) displays. [This driver](https://github.com/mcauser/micropython-pcd8544.git) is compatible. +## User contributed drivers + +The following drivers were contibuted by users. I am unable to support these as +I don't possess the relevant hardware. +SSD7567s contributed by EnricoRoss98 [PR](https://github.com/peterhinch/micropython-nano-gui/pull/57) +SSD1680.py contributed by EnricoRoss98 [PR](https://github.com/peterhinch/micropython-nano-gui/pull/56) + ## Adafruit displays See [these notes](./ADAFRUIT.md) for wiring details, pin names and hardware @@ -107,6 +115,7 @@ simple. See [this doc](./DRIVERS.md#7-writing-device-drivers) for details. [13d]: https://github.com/peterhinch/micropython-nano-gui/blob/master/drivers/sh1106/sh1106.py [14d]: https://github.com/peterhinch/micropython-nano-gui/blob/master/drivers/ssd1306/ssd1306.py [15d]: https://github.com/peterhinch/micropython-nano-gui/blob/master/DRIVERS.md#54-weact-studio-ssd1680-eink-displays +[16d]: https://github.com/peterhinch/micropython-nano-gui/blob/master/drivers/st7567s/st7567s.py [1m]: https://www.adafruit.com/product/684 [2m]: https://www.adafruit.com/product/1673 @@ -134,4 +143,4 @@ simple. See [this doc](./DRIVERS.md#7-writing-device-drivers) for details. [24m]: https://www.adafruit.com/product/2050 [25m]: https://www.waveshare.com/wiki/Pico-ResTouch-LCD-3.5 [26m]: https://aliexpress.com/item/1005004644515880.html - +[27m]: https://www.buydisplay.com/1-4-inch-graphic-128x64-lcd-module-serial-spi-st7567s-black-on-white diff --git a/drivers/epaper/epd29_ssd1680.py b/drivers/epaper/epd29_ssd1680.py index 9414c2c..da97320 100644 --- a/drivers/epaper/epd29_ssd1680.py +++ b/drivers/epaper/epd29_ssd1680.py @@ -1,3 +1,4 @@ +# epd29_ssd1680.py # Nanogui driver for WeAct Studio 2.9" Black and White ePaper display. # This driver can be used with the 2.13" EPD from WeAct Studio or with # other displays with the same driver however, on my tests changing the resolution @@ -13,6 +14,9 @@ # https://github.com/peterhinch/micropython-nano-gui/blob/master/drivers/epaper/epd29.py # https://github.com/hfwang132/ssd1680-micropython-drivers +# Driver contributed by Enrico Rossini @EnricoRoss98 +# https://github.com/peterhinch/micropython-nano-gui/pull/56 + # You can run a demo for this driver by executing the demo script "epd29_sync.py" import framebuf diff --git a/drivers/epaper/package.json b/drivers/epaper/package.json index 3438a14..f5636e3 100644 --- a/drivers/epaper/package.json +++ b/drivers/epaper/package.json @@ -4,6 +4,7 @@ ["drivers/epaper/epaper2in7_fb.py", "github:peterhinch/micropython-nano-gui/drivers/epaper/epaper2in7_fb.py"], ["drivers/epaper/pico_epaper_42_gs.py", "github:peterhinch/micropython-nano-gui/drivers/epaper/pico_epaper_42_gs.py"], ["drivers/epaper/pico_epaper_42.py", "github:peterhinch/micropython-nano-gui/drivers/epaper/pico_epaper_42.py"], + ["drivers/epaper/epd29_ssd1680.py", "github:peterhinch/micropython-nano-gui/drivers/epaper/epd29_ssd1680.py"], ["drivers/boolpalette.py", "github:peterhinch/micropython-nano-gui/drivers/boolpalette.py"] ], "version": "0.1" diff --git a/drivers/st7567s/package.json b/drivers/st7567s/package.json new file mode 100644 index 0000000..e8f4938 --- /dev/null +++ b/drivers/st7567s/package.json @@ -0,0 +1,7 @@ +{ + "urls": [ + ["drivers/st7567s/st7567s.py", "github:peterhinch/micropython-nano-gui/drivers/st7567s/st7567s.pyy"], + ["drivers/boolpalette.py", "github:peterhinch/micropython-nano-gui/drivers/boolpalette.py"] + ], + "version": "0.1" +} diff --git a/drivers/st7567s/st7567s.py b/drivers/st7567s/st7567s.py index dbf6eba..8a11960 100644 --- a/drivers/st7567s/st7567s.py +++ b/drivers/st7567s/st7567s.py @@ -1,3 +1,10 @@ +# st7567s.py + +# Released under the MIT License (MIT). See LICENSE. + +# Driver contributed by Enrico Rossini @EnricoRoss98 +# https://github.com/peterhinch/micropython-nano-gui/pull/57 + from micropython import const from gui.drivers.boolpalette import BoolPalette from time import sleep_ms