OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
OLEDParameters Struct Reference

Monochrome OLED working parameters. More...

#include <OutputHardware.hpp>

Static Public Member Functions

static OLEDParameters for132x64 ()
 Base parameters for 128x64 displays having a 132x64 controller.
 
static OLEDParameters withResolution (uint8_t width, uint8_t height, const OLEDParameters &params)
 Force a specific graphics resolution.
 

Public Attributes

bool flip_horizontal = false
 True to flip horizontally.
 
bool flip_vertical = false
 True to flip vertically.
 
bool inverted_display = false
 True to swap black and white pixels.
 
uint8_t screen_width = 128
 Screen width resolution in pixels.
 
uint8_t screen_height = 64
 Screen height resolution in pixels.
 
uint8_t start_row = 0
 Row pixel index where display starts.
 
uint8_t start_col = 0
 Column pixel index where display starts.
 
uint8_t display_offset = 0
 Row offset where the physical display meets the logical display.
 
uint8_t contrast = 127
 Display contrast (higher value means higher contrast)
 
uint8_t COMpins = 0x12
 COM pins value as required by the controller, bit[4] = COM pin configuration, bit[5] = COM left/right remap.
 
uint8_t oscillator_frequency = 0x80
 Display clock divide ratio/oscillator frequency.
 

Detailed Description

Monochrome OLED working parameters.

Note
For details, refer to the SSD1306 data sheet: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf

Definition at line 414 of file OutputHardware.hpp.

Member Function Documentation

◆ for132x64()

static OLEDParameters OLEDParameters::for132x64 ( )
inlinestatic

Base parameters for 128x64 displays having a 132x64 controller.

Returns
OLED parameters

Definition at line 446 of file OutputHardware.hpp.

◆ withResolution()

static OLEDParameters OLEDParameters::withResolution ( uint8_t width,
uint8_t height,
const OLEDParameters & params )
inlinestatic

Force a specific graphics resolution.

Parameters
widthScreen width in pixels
heightScreen height in pixels
paramsOther parameters
Returns
OLEDParameters Resulting parameters

Definition at line 461 of file OutputHardware.hpp.

Member Data Documentation

◆ COMpins

uint8_t OLEDParameters::COMpins = 0x12

COM pins value as required by the controller, bit[4] = COM pin configuration, bit[5] = COM left/right remap.

Definition at line 439 of file OutputHardware.hpp.

◆ contrast

uint8_t OLEDParameters::contrast = 127

Display contrast (higher value means higher contrast)

Definition at line 433 of file OutputHardware.hpp.

◆ display_offset

uint8_t OLEDParameters::display_offset = 0

Row offset where the physical display meets the logical display.

Definition at line 431 of file OutputHardware.hpp.

◆ flip_horizontal

bool OLEDParameters::flip_horizontal = false

True to flip horizontally.

Definition at line 417 of file OutputHardware.hpp.

◆ flip_vertical

bool OLEDParameters::flip_vertical = false

True to flip vertically.

Definition at line 419 of file OutputHardware.hpp.

◆ inverted_display

bool OLEDParameters::inverted_display = false

True to swap black and white pixels.

Definition at line 421 of file OutputHardware.hpp.

◆ oscillator_frequency

uint8_t OLEDParameters::oscillator_frequency = 0x80

Display clock divide ratio/oscillator frequency.

Definition at line 441 of file OutputHardware.hpp.

◆ screen_height

uint8_t OLEDParameters::screen_height = 64

Screen height resolution in pixels.

Definition at line 425 of file OutputHardware.hpp.

◆ screen_width

uint8_t OLEDParameters::screen_width = 128

Screen width resolution in pixels.

Definition at line 423 of file OutputHardware.hpp.

◆ start_col

uint8_t OLEDParameters::start_col = 0

Column pixel index where display starts.

Definition at line 429 of file OutputHardware.hpp.

◆ start_row

uint8_t OLEDParameters::start_row = 0

Row pixel index where display starts.

Definition at line 427 of file OutputHardware.hpp.


The documentation for this struct was generated from the following file: