Source code for gfxhat.lcd

"""Library for the GFX HAT ST7567 SPI LCD."""
from .st7567 import ST7567

st7567 = ST7567()

dimensions = st7567.dimensions


[docs]def clear(): """Clear GFX HAT's display buffer.""" st7567.clear()
[docs]def set_pixel(x, y, value): """Set a single pixel in GTX HAT's display buffer. :param x: X position (from 0 to 127) :param y: Y position (from 0 to 63) :param value: pixel state 1 = On, 0 = Off """ st7567.set_pixel(x, y, value)
[docs]def show(): """Update GFX HAT with the current buffer contents.""" st7567.show()