Class evab::ScreenSH1106¶
ClassList > evab > ScreenSH1106
SH1106 screen driver for OLED displays. More...
#include <evabScreenSH1106.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. |
| ScreenSH1106 (const IFont * font, unsigned long aWireClock=800000L) Constructor for SH1106 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¶
| 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::ScreenSH1106::Deserialize (
unsigned short aSerialized,
Coor & aPos,
Coor & aSize,
bool & isFocused
)
Parameters:
aSerializedSerialized stateaPosPosition of the element (output)aSizeSize of the element (output)isFocusedFocus state (output)
Implements evab::Screen::Deserialize
function ScreenSH1106¶
Constructor for SH1106 screen driver.
evab::ScreenSH1106::ScreenSH1106 (
const IFont * font,
unsigned long aWireClock=800000L
)
Parameters:
fontFont to useaWireClockI2C clock speed (default 800000)
function Serialize¶
Serializes element state for 16x8 screen.
virtual unsigned short evab::ScreenSH1106::Serialize (
const Coor & aPos,
const Coor & aSize,
bool isFocused
)
Parameters:
aPosPosition of the elementaSizeSize of the elementisFocusedFocus state
Returns:
unsigned short Serialized state
Implements evab::Screen::Serialize
function Size¶
Gets the screen size in tiles.
virtual Coor evab::ScreenSH1106::Size () override
Returns:
Coor Screen dimensions (16x8 tiles)
Implements evab::Screen::Size
The documentation for this class was generated from the following file src/evabScreenSH1106.h