Skip to content

Class evab::ScreenPCD8544

ClassList > evab > ScreenPCD8544

PCD8544 screen driver (Nokia 5110 display). More...

  • #include <evabScreenPCD8544.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.
ScreenPCD8544 (const IFont * aFont, uint8_t aRST, uint8_t aCE, uint8_t aDC, uint8_t aDIN, uint8_t aCLK, uint8_t aLED=255)
Constructor for PCD8544 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.
void SetContrast (uint8_t aContrast)
Sets display contrast.
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 84x48 pixel displays with SPI interface.

Public Functions Documentation

function Deserialize

Deserializes element state for 16x8 screen.

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

Constructor for PCD8544 screen driver.

evab::ScreenPCD8544::ScreenPCD8544 (
    const IFont * aFont,
    uint8_t aRST,
    uint8_t aCE,
    uint8_t aDC,
    uint8_t aDIN,
    uint8_t aCLK,
    uint8_t aLED=255
) 

Parameters:

  • aFont Font to use
  • aRST Reset pin
  • aCE Chip enable pin
  • aDC Data/Command pin
  • aDIN Data in pin (MOSI)
  • aCLK Clock pin (SCLK)
  • aLED Backlight pin (255 = none)

function Serialize

Serializes element state for 16x8 screen.

virtual unsigned short evab::ScreenPCD8544::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::ScreenPCD8544::SetBacklight (
    uint8_t aState
) 

Parameters:

  • aState 1 = on, 0 = off

function SetContrast

Sets display contrast.

void evab::ScreenPCD8544::SetContrast (
    uint8_t aContrast
) 

Parameters:

  • aContrast Contrast value (0-127)

function Size

Gets the screen size in tiles.

inline virtual Coor evab::ScreenPCD8544::Size () override

Returns:

Coor Screen dimensions (11x6 tiles)

Implements evab::Screen::Size



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