Skip to content

Class evab::ScreenKS0108

ClassList > evab > ScreenKS0108

KS0108-based GLCD screen driver. More...

  • #include <evabScreenKS0108.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.
ScreenKS0108 (const IFont * aFont, uint8_t aRS, uint8_t aRW, uint8_t aE, uint8_t aCS1, uint8_t aCS2, uint8_t aDB0, uint8_t aDB1, uint8_t aDB2, uint8_t aDB3, uint8_t aDB4, uint8_t aDB5, uint8_t aDB6, uint8_t aDB7, uint8_t aLED=255)
Constructor for KS0108 screen driver.
virtual unsigned short Serialize (const Coor & aPos, const Coor & aSize, bool isFocused)
Serializes element state for 16x8 screen.
void SetBacklight (uint8_t aState)
Sets backlight state.
virtual Coor Size () override
Gets the screen size in tiles.
void clearDisplay ()
Clears the entire display.
~ScreenKS0108 ()

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 pixel displays with two KS0108 chips.

Public Functions Documentation

function Deserialize

Deserializes element state for 16x8 screen.

virtual void evab::ScreenKS0108::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 ScreenKS0108

Constructor for KS0108 screen driver.

evab::ScreenKS0108::ScreenKS0108 (
    const IFont * aFont,
    uint8_t aRS,
    uint8_t aRW,
    uint8_t aE,
    uint8_t aCS1,
    uint8_t aCS2,
    uint8_t aDB0,
    uint8_t aDB1,
    uint8_t aDB2,
    uint8_t aDB3,
    uint8_t aDB4,
    uint8_t aDB5,
    uint8_t aDB6,
    uint8_t aDB7,
    uint8_t aLED=255
) 

Parameters:

  • aFont Font to use
  • aRS Register select pin
  • aRW Read/Write pin
  • aE Enable pin
  • aCS1 Chip select 1 pin
  • aCS2 Chip select 2 pin
  • aDB0-DB7 Data bus pins
  • aLED Backlight pin (255 = none)

function Serialize

Serializes element state for 16x8 screen.

virtual unsigned short evab::ScreenKS0108::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 SetBacklight

Sets backlight state.

void evab::ScreenKS0108::SetBacklight (
    uint8_t aState
) 

Parameters:

  • aState 1 = on, 0 = off

function Size

Gets the screen size in tiles.

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

Returns:

Coor Screen dimensions (16x8 tiles)

Implements evab::Screen::Size


function clearDisplay

Clears the entire display.

void evab::ScreenKS0108::clearDisplay () 

function ~ScreenKS0108

evab::ScreenKS0108::~ScreenKS0108 () 


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