mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
27 lines
574 B
Python
27 lines
574 B
Python
"""Inky pHAT e-Ink Display Driver."""
|
|
from . import inkyfast
|
|
|
|
|
|
class InkyPHATFast(inkyfast.InkyFast):
|
|
"""Inky wHAT e-Ink Display Driver."""
|
|
|
|
WIDTH = 212
|
|
HEIGHT = 104
|
|
|
|
WHITE = 0
|
|
BLACK = 1
|
|
RED = 2
|
|
YELLOW = 2
|
|
|
|
def __init__(self, colour):
|
|
"""Initialise an Inky pHAT Display.
|
|
|
|
:param colour: one of red, black or yellow, default: black
|
|
|
|
"""
|
|
inkyfast.InkyFast.__init__(
|
|
self,
|
|
resolution=(self.WIDTH, self.HEIGHT),
|
|
colour=colour,
|
|
h_flip=False,
|
|
v_flip=False) |