adafruit_ssd1305

Framebuf (non-displayio) driver for SSD1305 displays

  • Author(s): Melissa LeBlanc-Williamns, Bryan Siepert, Tony DiCola, Michael McWethy
Display init commands taken from
https://www.buydisplay.com/download/democode/ER-OLED022-1_I2C_DemoCode.txt

Implementation Notes

Software and Dependencies:

class adafruit_ssd1305.SSD1305_I2C(width, height, i2c, *, addr=60, external_vcc=False, reset=None)

I2C class for SSD1305

Parameters:
  • width – the width of the physical screen in pixels,
  • height – the height of the physical screen in pixels,
  • i2c – the I2C peripheral to use,
  • addr – the 8-bit bus address of the device,
  • external_vcc – whether external high-voltage source is connected.
  • reset – if needed, DigitalInOut designating reset pin
write_cmd(cmd)

Send a command to the SPI device

write_framebuf()

Blast out the frame buffer using a single I2C transaction to support hardware I2C interfaces.

class adafruit_ssd1305.SSD1305_SPI(width, height, spi, dc, reset, cs, *, external_vcc=False, baudrate=8000000, polarity=0, phase=0)

SPI class for SSD1305

Parameters:
  • width – the width of the physical screen in pixels,
  • height – the height of the physical screen in pixels,
  • spi – the SPI peripheral to use,
  • dc – the data/command pin to use (often labeled “D/C”),
  • reset – the reset pin to use,
  • cs – the chip-select pin to use (sometimes labeled “SS”).
write_cmd(cmd)

Send a command to the SPI device

write_framebuf()

write to the frame buffer via SPI