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¶
| 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:
aSerializedSerialized stateaPosPosition of the element (output)aSizeSize of the element (output)isFocusedFocus 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:
aFontFont to useaRSTReset pinaCEChip enable pinaDCData/Command pinaDINData in pin (MOSI)aCLKClock pin (SCLK)aLEDBacklight 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:
aPosPosition of the elementaSizeSize of the elementisFocusedFocus state
Returns:
unsigned short Serialized state
Implements evab::Screen::Serialize
function SetBacklight¶
Sets backlight state.
void evab::ScreenPCD8544::SetBacklight (
uint8_t aState
)
Parameters:
aState1 = on, 0 = off
function SetContrast¶
Sets display contrast.
void evab::ScreenPCD8544::SetContrast (
uint8_t aContrast
)
Parameters:
aContrastContrast 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