Trait st7565::DisplaySpecs

source ·
pub trait DisplaySpecs<const WIDTH: usize, const HEIGHT: usize, const PAGES: usize> {
    const FLIP_ROWS: bool;
    const FLIP_COLUMNS: bool;
    const INVERTED: bool;
    const BIAS_MODE_1: bool;
    const POWER_CONTROL: PowerControlMode;
    const VOLTAGE_REGULATOR_RESISTOR_RATIO: u8;
    const ELECTRONIC_VOLUME: u8;
    const BOOSTER_RATIO: BoosterRatio;
}
Expand description

Represents a display specification

Const generic parameters:

  • WIDTH: the horizontal resolution of the display
  • HEIGHT: the vertical resolution of the display
  • PAGES: the number of pages used by the display; usually HEIGHT / 8 (rounded up)

To create a custom display specification, create an empty struct that implements this trait.

Required Associated Constants§

source

const FLIP_ROWS: bool

Mirrors vertically

source

const FLIP_COLUMNS: bool

Mirrors horizontally

source

const INVERTED: bool

Inverts the pixels

source

const BIAS_MODE_1: bool

Whether the LCD bias mode needs to be “1”.

For more information, read the ST7565 reference manual.

source

const POWER_CONTROL: PowerControlMode

Which parts of the internal power circuits need to be enabled

source

const VOLTAGE_REGULATOR_RESISTOR_RATIO: u8

The required ratio of the internal voltage regulator resistors

source

const ELECTRONIC_VOLUME: u8

The electronic volume of the driver stage

source

const BOOSTER_RATIO: BoosterRatio

The internal booster ratio

Implementors§