adafruit_sharpmemorydisplay

A display control library for Sharp ‘memory’ displays

  • Author(s): ladyada

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_sharpmemorydisplay.SharpMemoryDisplay(spi: SPI, scs_pin: DigitalInOut, width: int, height: int, *, baudrate=2000000)

A driver for sharp memory displays, you can use any size but the full display must be buffered in memory!

image(img: Image) None

Set buffer to value of Python Imaging Library image. The image should be in 1 bit mode and a size equal to the display size.

show() None

write out the frame buffer via SPI, we use MSB SPI only so some bit-swapping is required.

adafruit_sharpmemorydisplay.reverse_bit(num: int) int

Turn an LSB byte to an MSB byte, and vice versa. Used for SPI as it is LSB for the SHARP, but 99% of SPI implementations are MSB only!