[][src]Module ssd1331::builder

Interface factory

This is the easiest way to create a driver instance. You can set various parameters of the driver and give it an interface to use. The builder will return a mode::RawMode object which you should coerce to a richer display mode, like mode::Graphics for drawing primitives and text.

Examples

Connect over SPI with default rotation (0 deg) and size (128x64):

This example is not tested
let spi = /* SPI interface from your HAL of choice */;
let dc = /* GPIO data/command select pin */;

Builder::new().connect_spi(spi, dc);

Structs

Builder

Builder struct. Driver options and interface are set using its methods.