Add support for SSD1608 variant 250x122 pixel Inky pHATs
Running `python3 -m inky.eeprom` should show display variant. Variants 10, 11 and 12 are SSD1608 based. This patch adds support for auto-detecting and using them when "ui.display.color" is set to "auto". Fixes #980 and #941 Signed-off-by: Philip Howard <phil@gadgetoid.com>
This commit is contained in:
parent
0704541dd1
commit
34c2c8a06e
@ -42,6 +42,12 @@ class Inky(DisplayImpl):
|
||||
from pwnagotchi.ui.hw.libs.inkyphat.inkyphatfast import InkyPHATFast
|
||||
self._display = InkyPHATFast('black')
|
||||
self._display.set_border(InkyPHATFast.BLACK)
|
||||
elif self.config['color'] == 'auto':
|
||||
from inky.auto import auto
|
||||
self._display = auto()
|
||||
self._display.set_border(self._display.BLACK)
|
||||
self._layout['width'] = self._display.WIDTH
|
||||
self._layout['height'] = self._display.HEIGHT
|
||||
else:
|
||||
from inky import InkyPHAT
|
||||
self._display = InkyPHAT(self.config['color'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user