Module ssd1322::command[][src]

Expand description

The command set for the SSD1322.

The display RAM of the SSD1322 is arranged in 128 rows and 120 columns, where each column is 4 adjacent pixels (segments) in the row for a total max resolution of 128x480. Each pixel is 4 bits/16 levels of intensity, so each column also refers to two adjacent bytes. Thus, anywhere there is a “column” address, these refer to horizontal groups of 2 bytes driving 4 pixels.

Modules

Constants describing max supported display size and the display RAM layout.

Enums

Enumerates commands that can be sent to the SSD1322 which accept a slice argument buffer. This is separated from Command so that the lifetime parameter of the argument buffer slice does not pervade code which never invokes these two commands.

Setting of column address remapping. This controls the direction of mapping display RAM column addresses onto groups of pixel column driver lines.

Setting the layout of the COM lines to the display rows. This setting is dictated by how the display module itself wires the OLED matrix to the driver chip, and changing it to anything other than the correct setting for your module will yield a corrupted image. See the display module datasheet for the correct value to use.

Setting of the COM line scanning of rows. This controls the order in which COM lines are scanned, leaving the order in which display RAM row addresses are scanned unchanged. Toggling this setting will thus flip the displayed image vertically.

Enumerates most of the valid commands that can be sent to the SSD1322 along with their parameter values. Commands which accept an array of similar “arguments” as a slice are encoded by BufCommand instead to avoid lifetime parameters on this enum.

Errors that can occur in commands.

Setting of the display mode. The display mode controls whether the display is blanked, and whether the pixel intensities are rendered normal or inverted.

The address increment orientation when writing image data. This configures how the SSD1322 will auto-increment the row and column addresses when image data is written using the WriteImageData command.

Setting of data nibble remapping. This controls how the SSD1322 will interpret the nibble-wise endianness of each 2-byte word, changing the order in which each group of 4 pixels is mapped onto the 4 nibbles stored at the corresponding display RAM column address.