adafruit_sharpmemorydisplay

A display control library for Sharp ‘memory’ displays

  • Author(s): ladyada

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_sharpmemorydisplay.SharpMemoryDisplay(spi, scs_pin, width, height, *, baudrate=2000000)

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

image(img)

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()

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

adafruit_sharpmemorydisplay.reverse_bit(num)

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!