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§
sourceconst FLIP_COLUMNS: bool
const FLIP_COLUMNS: bool
Mirrors horizontally
sourceconst BIAS_MODE_1: bool
const BIAS_MODE_1: bool
Whether the LCD bias mode needs to be “1”.
For more information, read the ST7565 reference manual.
sourceconst POWER_CONTROL: PowerControlMode
const POWER_CONTROL: PowerControlMode
Which parts of the internal power circuits need to be enabled
sourceconst VOLTAGE_REGULATOR_RESISTOR_RATIO: u8
const VOLTAGE_REGULATOR_RESISTOR_RATIO: u8
The required ratio of the internal voltage regulator resistors
sourceconst ELECTRONIC_VOLUME: u8
const ELECTRONIC_VOLUME: u8
The electronic volume of the driver stage
sourceconst BOOSTER_RATIO: BoosterRatio
const BOOSTER_RATIO: BoosterRatio
The internal booster ratio