Display_Lib_RPI 2.3.0
A C++ Library to connect electronic displays to Linux single board computers.
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
NOKIA_5110_RPI Class Reference

Class Controls SPI comms and LCD functionality. More...

#include <NOKIA_5110_LCD_RDL.hpp>

Inheritance diagram for NOKIA_5110_RPI:
Inheritance graph
[legend]

Public Member Functions

 NOKIA_5110_RPI (int16_t lcdwidth, int16_t lcdheight, uint8_t LCD_RST, uint8_t LCD_DC, uint8_t LCD_CE, int8_t LCD_DIN, int8_t LCD_CLK)
 Constructor of the class object from left to right pin 1-5(LCD)
 
 NOKIA_5110_RPI (int16_t lcdwidth, int16_t lcdheight, uint8_t LCD_RST, uint8_t LCD_DC)
 Constructor of the class object from left to right pin 1-2(LCD)
 
rdlib::Return_Codes_e LCDBegin (bool Inverse, uint8_t Contrast, uint8_t Bias, int gpioDev)
 This sends the commands to the PCD8544 to init LCD.
 
rdlib::Return_Codes_e LCDBegin (bool Inverse, uint8_t Contrast, uint8_t Bias, int device, int channel, int speed, int flags, int gpioDev)
 This sends the commands to the PCD8544 to init LCD.
 
void LCDenableSleep (void)
 Turn on sleep mode.
 
void LCDdisableSleep (void)
 Turn off sleep mode.
 
bool LCDIsSleeping (void)
 LCDisSleeping.
 
rdlib::Return_Codes_e LCDSPIoff (void)
 End SPI operations.
 
void LCDPowerDown (void)
 Call when powering down LCD.
 
virtual void drawPixel (int16_t x, int16_t y, uint8_t color) override
 Set a single pixel in the buffer.
 
void LCDSetContrast (uint8_t con)
 Function to set contrast passed a byte.
 
void LCDdisplayUpdate (void)
 Writes the buffer to the LCD.
 
void LCDdisplayClear (void)
 Writes the buffer (full of zeros) to the LCD.
 
void LCDfillScreen (void)
 Writes the buffer (full of ones(0xFF)) to the LCD.
 
void LCDfillScreenPattern (uint8_t)
 Writes the buffer (with pattern) to the LCD.
 
void LCDinvertDisplay (bool inv)
 inverts color on display
 
uint16_t LCDHighFreqDelayGet (void)
 Freq delay used in SW SPI getter, uS delay used in SW SPI method.
 
void LCDHighFreqDelaySet (uint16_t)
 Freq delay used in SW SPI setter, uS delay used in SW SPI method.
 
bool isHardwareSPI (void)
 Checks which SPI mode is on.
 
- Public Member Functions inherited from bicolor_graphics
 bicolor_graphics (int16_t w, int16_t h)
 init the Display Graphics class object
 
rdlib::Return_Codes_e drawDotGrid (int16_t x, int16_t y, int16_t w, int16_t h, uint8_t DotGridGap, uint8_t color)
 Draws a grid of dots on the screen starting from the given coordinates. This function draws a grid of pixels with a specified gap between them. It checks that the provided coordinates and dimensions are within the screen bounds and adjusts them if necessary. It also validates The grid of dots gap value and defaults it to 2 if invalid.
 
void drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint8_t color)
 draws a line from (x0,y0) to (x1,y1).
 
rdlib::Return_Codes_e drawFastVLine (int16_t x, int16_t y, int16_t h, uint8_t color)
 Draws a vertical line starting at (x,y) with height h.
 
rdlib::Return_Codes_e drawFastHLine (int16_t x, int16_t y, int16_t w, uint8_t color)
 Draws a horizontal line starting at (x,y) with width w.
 
void drawLineAngle (int16_t x, int16_t y, int angle, uint8_t start, uint8_t length, int offset, uint8_t color)
 Draws a line using an angle and length as parameters. This function draws a line starting from (x, y), extending in the direction specified by angle, with a given length. The function also allows applying an offset to the angle before computing the line’s end coordinates.
 
void drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint8_t color)
 draws rectangle at (x,y) where h is height and w is width of the rectangle.
 
void fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint8_t color)
 fills a rectangle starting from coordinates (x,y) with width of w and height of h.
 
void fillScreen (uint8_t color)
 Fills the whole screen with a given color.
 
void drawCircle (int16_t x0, int16_t y0, int16_t r, uint8_t color)
 draws a circle where (x0,y0) are center coordinates an r is circle radius.
 
void fillCircle (int16_t x0, int16_t y0, int16_t r, uint8_t color)
 fills a circle where (x0,y0) are center coordinates an r is circle radius.
 
void drawEllipse (int16_t cx, int16_t cy, int16_t semiMajorAxis, int16_t semiMinorAxis, bool fill, uint8_t color)
 Draw an ellipse on the display. This function uses the midpoint ellipse algorithm to efficiently draw an ellipse centered at (cx, cy) with the given semi-major (horizontal) and semi-minor (vertical) axes.
 
void drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color)
 draws a triangle of coordinates (x0,y0), (x1,y1) and (x2,y2).
 
void fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color)
 Fills a triangle of coordinates (x0,y0), (x1,y1) and (x2,y2).
 
void drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint8_t color)
 draws a rectangle with rounded edges
 
void fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint8_t color)
 Fills a rectangle with rounded edges.
 
void drawQuadrilateral (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, uint8_t color)
 Draws a quadrilateral (four-sided polygon) by connecting four points with lines. This function draws a quadrilateral by drawing four lines between the given vertices. The lines are drawn in the order: (x0, y0) to (x1, y1), (x1, y1) to (x2, y2), (x2, y2) to (x3, y3), and finally (x3, y3) back to (x0, y0).
 
void fillQuadrilateral (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, uint8_t color, bool useTriangleSplit=true)
 Fills a quadrilateral with the specified color using triangles. This function fills a quadrilateral by dividing it into triangles and filling them individually. The quadrilateral is filled by calling the fillTriangle function three times with appropriate vertex coordinates. The useTriangleSplit parameter determines whether the quadrilateral is divided into two triangles or if only one triangle is used.
 
rdlib::Return_Codes_e drawPolygon (int16_t x, int16_t y, uint8_t sides, int16_t diameter, float rotation, bool fill, uint8_t color)
 Draws a polygon with a specified number of sides, diameter, rotation, and color. This function draws a regular polygon by connecting points equally spaced around a circle, with each point having a distance defined by the diameter. The polygon is rotated by the given angle (in degrees) before being drawn. The number of sides is enforced to be at least 3.
 
void drawArc (uint16_t cx, uint16_t cy, uint16_t radius, uint16_t thickness, float startAngle, float endAngle, uint8_t color)
 Draw an arc on the TFT display. This function draws an arc between two angles (start and end) on a circle with a given radius.
 
void drawSimpleArc (int16_t cx, int16_t cy, int16_t radius, float startAngle, float endAngle, uint8_t color)
 Draw a simple arc of one pixel on the display( no offsets , thickness or maximum arc calculations) This function draws an arc between two angles (start and end) on a circle with a given radius.
 
float getArcAngleMax () const
 Get the current maximum angle of the arc.
 
void setArcAngleMax (float arcAngleMax)
 Set a new maximum angle for the arc.
 
int getArcAngleOffset () const
 Get the current angle offset.
 
void setArcAngleOffset (int arcAngleOffset)
 Set a new angle offset.
 
void setCursor (int16_t x, int16_t y)
 set the cursor position
 
void setRotation (displayBC_rotate_e m)
 Sets the _rotation of the display.
 
displayBC_rotate_e getRotation ()
 Gets the _rotation of the display.
 
int16_t height (void) const
 Gets the height of the display (per current _rotation)
 
int16_t width (void) const
 Gets the width of the display (per current _rotation)
 
virtual size_t write (uint8_t) override
 write method used in the print class when user calls print
 
rdlib::Return_Codes_e writeChar (int16_t x, int16_t y, char value)
 Write 1 character on display.
 
rdlib::Return_Codes_e writeCharString (int16_t x, int16_t y, char *text)
 Write Text character array on Display.
 
void setTextWrap (bool w)
 turn on or off screen wrap of the text
 
void setDrawBitmapAddr (bool mode)
 sets the data addressing mode in drawBitmap function.
 
rdlib::Return_Codes_e drawBitmap (int16_t x, int16_t y, const std::span< const uint8_t > bitmap, int16_t w, int16_t h, uint8_t color, uint8_t bg)
 Draw a 1-bit color bitmap.
 
- Public Member Functions inherited from display_Fonts
 display_Fonts ()
 init the OLED font class object constructor
 
rdlib::Return_Codes_e setFont (display_Font_name_e)
 SetFont.
 
void setInvertFont (bool invertStatus)
 setInvertFont
 
bool getInvertFont (void)
 getInvertFont
 
- Public Member Functions inherited from Print
int getWriteError ()
 gets the error flag status, zero no error
 
void clearWriteError ()
 clears the error flag by setting it to zero
 
virtual size_t write (const uint8_t *buffer, size_t size)
 define in the sub class
 
size_t write (const char *str)
 Writes a string to the output.
 
size_t write (const char *buffer, size_t size)
 Writes a buffer of a specified size to the output.
 
virtual int availableForWrite ()
 define in the sub class
 
size_t print (const char[])
 print an array
 
size_t print (char)
 print an character
 
size_t print (int, int=RDL_DEC)
 print an integer of base number system
 
size_t print (unsigned int, int=RDL_DEC)
 print an unsigned integer of base number system
 
size_t print (long, int=RDL_DEC)
 print an long integer of base number system
 
size_t print (unsigned long, int=RDL_DEC)
 print an unsigned long integer of base number system
 
size_t print (double, int=2)
 print an double
 
size_t print (const std::string &)
 print an C++ string object
 
size_t println (const char[])
 Prints a character array followed by a newline.
 
size_t println (char)
 print an character followed by new line
 
size_t println (int, int=RDL_DEC)
 print an integer of base number system followed by new line
 
size_t println (unsigned int, int=RDL_DEC)
 print an unsigned integer of base number system followed by new line
 
size_t println (long, int=RDL_DEC)
 print an long integer of base number system followed by new line
 
size_t println (unsigned long, int=RDL_DEC)
 print an unsigned long integer of base number system followed by new line
 
size_t println (double, int=2)
 print an double
 
size_t println (void)
 Goto to new line.
 
size_t println (const std::string &s)
 print an C++ string object followed by new line
 
template<typename T >
size_t print (const std::vector< T > &v, int format=defaultFormat< T >())
 Print a vector of any type.
 
template<typename T >
size_t println (const std::vector< T > &vec, int format=defaultFormat< T >())
 Print a vector of elements followed by a newline.
 
template<typename T , size_t N>
size_t print (const std::array< T, N > &arr, int format=defaultFormat< T >())
 Print a std::array of any type.
 
template<typename T , size_t N>
size_t println (const std::array< T, N > &arr, int format=defaultFormat< T >())
 Print a std::array of elements followed by a newline.
 

Private Member Functions

void LCDWriteData (uint8_t data)
 Writes a byte to the PCD8544.
 
void LCDWriteCommand (uint8_t command)
 Writes a command byte to the PCD8544.
 
void LCDInit (void)
 Init the LCD command sequence, called from begin.
 

Private Attributes

bool _LCDHardwareSPI = true
 
uint16_t _LCDHighFreqDelay = 0
 
int _spiHandle = 0
 
int _spiDev = 0
 
int _spiChan = 0
 
int _spiBaud = 50000
 
int _spiFlags = 0
 
int8_t _Display_DC
 
int8_t _Display_RST
 
int8_t _Display_CS
 
int8_t _Display_SCLK
 
int8_t _Display_SDATA
 
int _DeviceNumGpioChip = 0
 
int _GpioHandle = 0
 
uint8_t _contrast
 
uint8_t _bias
 
bool _inverse = false
 
bool _sleep
 
int16_t _LCD_HEIGHT = 48
 
int16_t _LCD_WIDTH = 84
 
uint16_t _LCD_Display_size = _LCD_WIDTH * (_LCD_HEIGHT/8)
 
uint8_t LCDDisplayBuffer [504]
 

Static Private Attributes

static constexpr uint8_t LCD_FUNCTIONSET = 0x20
 
static constexpr uint8_t LCD_POWERDOWN = 0x04
 
static constexpr uint8_t LCD_ENTRYMODE = 0x02
 
static constexpr uint8_t LCD_EXTENDEDINSTRUCTION = 0x01
 
static constexpr uint8_t LCD_DISPLAYCONTROL = 0x08
 
static constexpr uint8_t LCD_DISPLAYBLANK = 0x00
 
static constexpr uint8_t LCD_DISPLAYNORMAL = 0x04
 
static constexpr uint8_t LCD_DISPLAYALLON = 0x01
 
static constexpr uint8_t LCD_DISPLAYINVERTED = 0x05
 
static constexpr uint8_t LCD_SETYADDR = 0x40
 
static constexpr uint8_t LCD_SETXADDR = 0x80
 
static constexpr uint8_t LCD_SETTEMP = 0x04
 
static constexpr uint8_t LCD_CONTRAST = 0xB0
 
static constexpr uint8_t LCD_BIAS = 0x13
 

Additional Inherited Members

- Public Types inherited from bicolor_graphics
enum  displayBC_rotate_e : uint8_t { BC_Degrees_0 = 0 , BC_Degrees_90 = 1 , BC_Degrees_180 = 2 , BC_Degrees_270 = 3 }
 
enum  pixel_color_e : uint8_t { WHITE = 0 , BLACK = 1 , INVERSE = 2 }
 
- Public Types inherited from Print
enum  BaseNum : uint8_t { RDL_DEC = 10 , RDL_HEX = 16 , RDL_OCT = 8 , RDL_BIN = 2 }
 
- Protected Member Functions inherited from Print
void setWriteError (int err=0)
 
- Protected Attributes inherited from bicolor_graphics
displayBC_rotate_e _display_rotate = BC_Degrees_0
 
const int16_t WIDTH
 
const int16_t HEIGHT
 
int16_t _width
 
int16_t _height
 
int16_t _cursor_x
 
int16_t _cursor_y
 
float _arcAngleMax = 360.0f
 
int _arcAngleOffset = 0
 
bool _textwrap = true
 
- Protected Attributes inherited from display_Fonts
std::span< const uint8_t > _FontSelect = pFontDefault
 
uint8_t _Font_X_Size = 0x08
 
uint8_t _Font_Y_Size = 0x08
 
uint8_t _FontOffset = 0x20
 
uint8_t _FontNumChars = 0x5F
 

Detailed Description

Class Controls SPI comms and LCD functionality.

Constructor & Destructor Documentation

◆ NOKIA_5110_RPI() [1/2]

NOKIA_5110_RPI::NOKIA_5110_RPI ( int16_t  lcdwidth,
int16_t  lcdheight,
uint8_t  LCD_RST,
uint8_t  LCD_DC,
uint8_t  LCD_CE,
int8_t  LCD_DIN,
int8_t  LCD_CLK 
)

Constructor of the class object from left to right pin 1-5(LCD)

Parameters
lcdwidthwidth of lcd in pixels
lcdheightheight of lcd in pixels
LCD_RSTreset GPIO
LCD_DCdata or command GPIO
LCD_CEchip enable GPIO
LCD_DINdata in GPIO
LCD_CLKclock GPIO
Note
Software SPI default , RST pin 1, DC pin 2,CE pin 3, DIN pin 4, CLK pin 5 , overloaded

◆ NOKIA_5110_RPI() [2/2]

NOKIA_5110_RPI::NOKIA_5110_RPI ( int16_t  lcdwidth,
int16_t  lcdheight,
uint8_t  LCD_RST,
uint8_t  LCD_DC 
)

Constructor of the class object from left to right pin 1-2(LCD)

Parameters
lcdwidthwidth of lcd in pixels
lcdheightheight of lcd in pixels
LCD_RSTreset GPIO
LCD_DCdata or command GPIO
Note
Hardware SPI default , RST pin 1, DC pin 2 , overloaded

Member Function Documentation

◆ drawPixel()

void NOKIA_5110_RPI::drawPixel ( int16_t  x,
int16_t  y,
uint8_t  color 
)
overridevirtual

Set a single pixel in the buffer.

Parameters
xx coordinate
yy coordinate
colorColor of pixel

Implements bicolor_graphics.

◆ isHardwareSPI()

bool NOKIA_5110_RPI::isHardwareSPI ( void  )

Checks which SPI mode is on.

Returns
true 1 if hardware SPI on , false 0 for software SPI

◆ LCDBegin() [1/2]

rdlib::Return_Codes_e NOKIA_5110_RPI::LCDBegin ( bool  Inverse,
uint8_t  Contrast,
uint8_t  Bias,
int  device,
int  channel,
int  speed,
int  flags,
int  gpioDev 
)

This sends the commands to the PCD8544 to init LCD.

Parameters
Inversefalse normal mode true display inverted
ContrastSet LCD VOP contrast range 0xB1-BF
BiasLCD Bias mode 1:48 0x12 to 0x14
deviceA SPI device, >= 0.
channelA SPI channel, >= 0.
speedThe speed of serial communication in bits per second.
flagsThe flags may be used to modify the default behaviour. Set to 0(mode 0) for this device.
gpioDevThe device number of a gpiochip.
Note
overloaded this one is for Hardware SPI
Returns
rdlib::Return_Codes_e
  1. rdlib::Success
  2. rdlib::WrongModeChosen
  3. rdlib::GpioChipDevice
  4. rdlib::GpioPinClaim
  5. rdlib::SPIOpenFailure

◆ LCDBegin() [2/2]

rdlib::Return_Codes_e NOKIA_5110_RPI::LCDBegin ( bool  Inverse,
uint8_t  Contrast,
uint8_t  Bias,
int  gpioDev 
)

This sends the commands to the PCD8544 to init LCD.

Parameters
Inversefalse normal mode true display inverted
ContrastSet LCD VOP contrast range 0xB1-BF
BiasLCD Bias mode 1:48 0x12 to 0x14
gpioDevThe device number of a gpiochip.
Note
overloaded this one is for Software SPI
Returns
rdlib::Return_Codes_e
  1. rdlib::Success
  2. rdlib::WrongModeChosen
  3. rdlib::GpioChipDevice
  4. rdlib::GpioPinClaim

◆ LCDfillScreenPattern()

void NOKIA_5110_RPI::LCDfillScreenPattern ( uint8_t  Pattern)

Writes the buffer (with pattern) to the LCD.

Parameters
PatternThe pattern to send 0x00 to 0xFF

◆ LCDHighFreqDelayGet()

uint16_t NOKIA_5110_RPI::LCDHighFreqDelayGet ( void  )

Freq delay used in SW SPI getter, uS delay used in SW SPI method.

Returns
The GPIO communications delay in uS

◆ LCDHighFreqDelaySet()

void NOKIA_5110_RPI::LCDHighFreqDelaySet ( uint16_t  CommDelay)

Freq delay used in SW SPI setter, uS delay used in SW SPI method.

Parameters
CommDelayThe GPIO communications delay in uS

◆ LCDinvertDisplay()

void NOKIA_5110_RPI::LCDinvertDisplay ( bool  invert)

inverts color on display

Parameters
invertTrue = Inverted mode , False = Display control mode normal

◆ LCDIsSleeping()

bool NOKIA_5110_RPI::LCDIsSleeping ( void  )

LCDisSleeping.

Returns
value of _sleep, if true LCD is in sleep mode.

◆ LCDSetContrast()

void NOKIA_5110_RPI::LCDSetContrast ( uint8_t  contrast)

Function to set contrast passed a byte.

Parameters
contrastSet LCD VOP Contrast B0 to BF

◆ LCDSPIoff()

rdlib::Return_Codes_e NOKIA_5110_RPI::LCDSPIoff ( void  )

◆ LCDWriteCommand()

void NOKIA_5110_RPI::LCDWriteCommand ( uint8_t  command)
private

Writes a command byte to the PCD8544.

Parameters
commandThe command byte to send

◆ LCDWriteData()

void NOKIA_5110_RPI::LCDWriteData ( uint8_t  dataByte)
private

Writes a byte to the PCD8544.

Parameters
dataBytebyte will be sent as command or data depending on status of DC line

Member Data Documentation

◆ _bias

uint8_t NOKIA_5110_RPI::_bias
private

LCD bias

◆ _contrast

uint8_t NOKIA_5110_RPI::_contrast
private

LCD contrast

◆ _DeviceNumGpioChip

int NOKIA_5110_RPI::_DeviceNumGpioChip = 0
private

The device number of a gpiochip ls /dev/gpio

◆ _Display_CS

int8_t NOKIA_5110_RPI::_Display_CS
private

Chip enable, Software SPI only

◆ _Display_DC

int8_t NOKIA_5110_RPI::_Display_DC
private

Data or command GPIO

◆ _Display_RST

int8_t NOKIA_5110_RPI::_Display_RST
private

Reset GPIO

◆ _Display_SCLK

int8_t NOKIA_5110_RPI::_Display_SCLK
private

Clock GPIO, Software SPI only

◆ _Display_SDATA

int8_t NOKIA_5110_RPI::_Display_SDATA
private

Data GPIO ,Software SPI only

◆ _GpioHandle

int NOKIA_5110_RPI::_GpioHandle = 0
private

This holds a handle to a gpiochip device opened by lgGpiochipOpen

◆ _inverse

bool NOKIA_5110_RPI::_inverse = false
private

LCD inverted , false for off

◆ _LCD_Display_size

uint16_t NOKIA_5110_RPI::_LCD_Display_size = _LCD_WIDTH * (_LCD_HEIGHT/8)
private

size of display in pixels 504 (LCDWIDTH*(LCDHEIGHT / 8)

◆ _LCD_HEIGHT

int16_t NOKIA_5110_RPI::_LCD_HEIGHT = 48
private

height of LCD in pixels

◆ _LCD_WIDTH

int16_t NOKIA_5110_RPI::_LCD_WIDTH = 84
private

width of LCD in pixels

◆ _LCDHardwareSPI

bool NOKIA_5110_RPI::_LCDHardwareSPI = true
private

Hardware SPI true on , false off

◆ _LCDHighFreqDelay

uint16_t NOKIA_5110_RPI::_LCDHighFreqDelay = 0
private

uS GPIO Communications delay ,used in SW SPI ONLY

◆ _sleep

bool NOKIA_5110_RPI::_sleep
private

LCD sleep mode

◆ _spiBaud

int NOKIA_5110_RPI::_spiBaud = 50000
private

The speed of serial communication in bits per second.

◆ _spiChan

int NOKIA_5110_RPI::_spiChan = 0
private

A SPI channel, >= 0.

◆ _spiDev

int NOKIA_5110_RPI::_spiDev = 0
private

A SPI device, >= 0.

◆ _spiFlags

int NOKIA_5110_RPI::_spiFlags = 0
private

The flags 2 LSB defines SPI mode

◆ _spiHandle

int NOKIA_5110_RPI::_spiHandle = 0
private

Hold a handle for the SPI device on the channel.

◆ LCD_BIAS

constexpr uint8_t NOKIA_5110_RPI::LCD_BIAS = 0x13
staticconstexprprivate

LCD Bias mode 1:48 0x12 to 0x14

◆ LCD_CONTRAST

constexpr uint8_t NOKIA_5110_RPI::LCD_CONTRAST = 0xB0
staticconstexprprivate

default value set LCD VOP contrast range 0xB1-BF

◆ LCD_DISPLAYALLON

constexpr uint8_t NOKIA_5110_RPI::LCD_DISPLAYALLON = 0x01
staticconstexprprivate

all pixels on

◆ LCD_DISPLAYBLANK

constexpr uint8_t NOKIA_5110_RPI::LCD_DISPLAYBLANK = 0x00
staticconstexprprivate

Blank display

◆ LCD_DISPLAYCONTROL

constexpr uint8_t NOKIA_5110_RPI::LCD_DISPLAYCONTROL = 0x08
staticconstexprprivate

Set display control

◆ LCD_DISPLAYINVERTED

constexpr uint8_t NOKIA_5110_RPI::LCD_DISPLAYINVERTED = 0x05
staticconstexprprivate

display inverted

◆ LCD_DISPLAYNORMAL

constexpr uint8_t NOKIA_5110_RPI::LCD_DISPLAYNORMAL = 0x04
staticconstexprprivate

normal mode display

◆ LCD_ENTRYMODE

constexpr uint8_t NOKIA_5110_RPI::LCD_ENTRYMODE = 0x02
staticconstexprprivate

LCD entry mode

◆ LCD_EXTENDEDINSTRUCTION

constexpr uint8_t NOKIA_5110_RPI::LCD_EXTENDEDINSTRUCTION = 0x01
staticconstexprprivate

LCD get into the EXTENDED mode when combined with Function set

◆ LCD_FUNCTIONSET

constexpr uint8_t NOKIA_5110_RPI::LCD_FUNCTIONSET = 0x20
staticconstexprprivate

LCD function set

◆ LCD_POWERDOWN

constexpr uint8_t NOKIA_5110_RPI::LCD_POWERDOWN = 0x04
staticconstexprprivate

LCD power off

◆ LCD_SETTEMP

constexpr uint8_t NOKIA_5110_RPI::LCD_SETTEMP = 0x04
staticconstexprprivate

set temperature coefficient

◆ LCD_SETXADDR

constexpr uint8_t NOKIA_5110_RPI::LCD_SETXADDR = 0x80
staticconstexprprivate

X axis address setting

◆ LCD_SETYADDR

constexpr uint8_t NOKIA_5110_RPI::LCD_SETYADDR = 0x40
staticconstexprprivate

Y axis address setting

◆ LCDDisplayBuffer

uint8_t NOKIA_5110_RPI::LCDDisplayBuffer[504]
private

buffer which holds screen data


The documentation for this class was generated from the following files: