Skip to content

Class evab::ScreenSSH1106

ClassList > evab > ScreenSSH1106

SSH1106 screen driver for OLED displays. More...

  • #include <evabScreenSSH1106.h>

Inherits the following classes: evab::ScreenPage8Base

Public Functions

Type Name
virtual void Deserialize (unsigned short aSerialized, Coor & aPos, Coor & aSize, bool & isFocused)
Deserializes element state for 16x8 screen.
ScreenSSH1106 (const IFont * font, unsigned long aWireClock=800000L)
Constructor for SSH1106 screen driver.
virtual unsigned short Serialize (const Coor & aPos, const Coor & aSize, bool isFocused)
Serializes element state for 16x8 screen.
virtual Coor Size () override
Gets the screen size in tiles.

Public Functions inherited from evab::ScreenPage8Base

See evab::ScreenPage8Base

Type Name
virtual void DrawSymbol (Coor aPosition, Coor aSize, char aCharcode, unsigned char aColor)
Draws a symbol at the specified position with scaling.
virtual void Picto (Coor aPosition, const unsigned char * aPictogram, unsigned char aColor)
Draws a pictogram at the specified position.
ScreenPage8Base (const IFont * aFont)
Constructor for page-based 8-bit screen base.

Public Functions inherited from evab::Screen

See evab::Screen

Type Name
virtual void Clear (Coor aPosition, Coor aSize, unsigned char aColor=0)
virtual void Deserialize (unsigned short aSerialized, Coor & aPosition, Coor & aSize, bool & isFocused) = 0
virtual void DrawSymbol (Coor aPosition, Coor aSize, char aSymbol, unsigned char aColor=0) = 0
virtual void Picto (Coor aPosition, const unsigned char * aPictogram, unsigned char aColor=0)
virtual unsigned short Serialize (const Coor & aPosition, const Coor & aSize, bool isFocused) = 0
virtual Coor Size () = 0
void Text (Coor aPosition, Coor aSize, TText aText, unsigned char aColor=0)
Draws text with specified alignment strategy.
void TextCenter (Coor aPosition, Coor aSize, T aText, unsigned char aColor=0)
void TextLeft (Coor aPosition, Coor aSize, T aText, unsigned char aColor=0)
void TextRight (Coor aPosition, Coor aSize, T aText, unsigned char aColor=0)

Detailed Description

Supports 128x64 OLED displays with I2C interface. Similar to SSD1306 but with different initialization sequence.

Public Functions Documentation

function Deserialize

Deserializes element state for 16x8 screen.

virtual void evab::ScreenSSH1106::Deserialize (
    unsigned short aSerialized,
    Coor & aPos,
    Coor & aSize,
    bool & isFocused
) 

Parameters:

  • aSerialized Serialized state
  • aPos Position of the element (output)
  • aSize Size of the element (output)
  • isFocused Focus state (output)

Implements evab::Screen::Deserialize


function ScreenSSH1106

Constructor for SSH1106 screen driver.

evab::ScreenSSH1106::ScreenSSH1106 (
    const IFont * font,
    unsigned long aWireClock=800000L
) 

Parameters:

  • font Font to use
  • aWireClock I2C clock speed (default 800000)

function Serialize

Serializes element state for 16x8 screen.

virtual unsigned short evab::ScreenSSH1106::Serialize (
    const Coor & aPos,
    const Coor & aSize,
    bool isFocused
) 

Parameters:

  • aPos Position of the element
  • aSize Size of the element
  • isFocused Focus state

Returns:

unsigned short Serialized state

Implements evab::Screen::Serialize


function Size

Gets the screen size in tiles.

virtual Coor evab::ScreenSSH1106::Size () override

Returns:

Coor Screen dimensions (16x8 tiles)

Implements evab::Screen::Size



The documentation for this class was generated from the following file src/evabScreenSSH1106.h