NAME

Device::Chip::SSD1306 - chip driver for a SSD1306 OLED module

DESCRIPTION

This abstract Device::Chip subclass provides communication to an SSD1306 chip attached by an adapter. To actually use it, you should use one of the subclasses for the various interface types.

The reader is presumed to be familiar with the general operation of this chip; the documentation here will not attempt to explain or define chip-specific concepts or features, only the use of this module to access them.

METHODS

The following methods documented with a trailing call to ->get return Future instances.

$ssd->init->get

Initialise the display after reset to some sensible defaults.

$ssd->display( $on )->get

Turn on or off the display.

$ssd->display_lamptest( $enable )->get

Turn on or off the all-pixels-lit lamptest mode.

$ssd->send_display( $pixels )->get

Sends an entire screen-worth of pixel data. The $pixels should be in a packed binary string 128 * 8 bytes long.

TODO

  • More interfaces - 3-wire SPI

  • Maintain a framebuffer. Add some drawing commands like pixels and lines.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>