LCDGFX LCD display driver  1.1.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
DisplayPCD8544_84x48_CustomSPI< I > Class Template Reference

#include <lcd_pcd8544.h>

Inheritance diagram for DisplayPCD8544_84x48_CustomSPI< I >:
Collaboration diagram for DisplayPCD8544_84x48_CustomSPI< I >:

Public Member Functions

template<typename... Args>
 DisplayPCD8544_84x48_CustomSPI (int8_t rstPin, int8_t dcPin, Args &&... data)
 Inits 84x48 lcd display over spi (based on PCD8544 controller): 1-bit mode. More...
 
void begin () override
 
void end () override
 
- Public Member Functions inherited from DisplayPCD8544_84x48< InterfacePCD8544< I > >
 DisplayPCD8544_84x48 (InterfacePCD8544< I > &intf, int8_t rstPin)
 
- Public Member Functions inherited from DisplayPCD8544< InterfacePCD8544< I > >
 DisplayPCD8544 (InterfacePCD8544< I > &intf, int8_t rstPin)
 
- Public Member Functions inherited from NanoDisplayOps< NanoDisplayOps1< InterfacePCD8544< I > >, InterfacePCD8544< I > >
void putPixel (const NanoPoint &p)
 
void drawLine (lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
 
void drawLine (const NanoRect &rect)
 
void drawRect (lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2)
 
void drawRect (const NanoRect &rect)
 
void fillRect (const NanoRect &rect)
 
void drawCircle (lcdint_t xc, lcdint_t yc, lcdint_t r, uint8_t options=0x0F)
 
void drawCanvas (lcdint_t x, lcdint_t y, NanoCanvasOps< 1 > &canvas) __attribute__((noinline))
 
void drawCanvas (lcdint_t x, lcdint_t y, NanoCanvasOps< 4 > &canvas) __attribute__((noinline))
 
void drawCanvas (lcdint_t x, lcdint_t y, NanoCanvasOps< 8 > &canvas) __attribute__((noinline))
 
void drawCanvas (lcdint_t x, lcdint_t y, NanoCanvasOps< 16 > &canvas) __attribute__((noinline))
 
void printFixedPgm (lcdint_t xpos, lcdint_t y, const char *ch, EFontStyle style=STYLE_NORMAL) __attribute__((noinline))
 
void write (const char *str)
 
void print (int number)
 
void print (float number)
 
void print (char c)
 
void createMenu (SAppMenu *menu, const char **items, uint8_t count, const NanoRect &rect={})
 
void showMenu (SAppMenu *menu)
 
void showMenuSmooth (SAppMenu *menu)
 
void updateMenu (SAppMenu *menu)
 
void updateMenuSmooth (SAppMenu *menu)
 
uint8_t menuSelection (const SAppMenu *menu)
 
void menuDown (SAppMenu *menu)
 
void menuUp (SAppMenu *menu)
 
void drawProgressBar (int8_t progress)
 
void drawWindow (lcdint_t x, lcdint_t y, lcduint_t width, lcduint_t height, const char *caption, bool blank)
 
- Public Member Functions inherited from NanoDisplayOps1< InterfacePCD8544< I > >
void putPixel (lcdint_t x, lcdint_t y) __attribute__((noinline))
 
void drawVLine (lcdint_t x1, lcdint_t y1, lcdint_t y2)
 
void drawHLine (lcdint_t x1, lcdint_t y1, lcdint_t x2)
 
void fillRect (lcdint_t x1, lcdint_t y1, lcdint_t x2, lcdint_t y2) __attribute__((noinline))
 
void drawXBitmap (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
 
void drawBitmap1 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *bitmap) __attribute__((noinline))
 Draws monochrome bitmap in color buffer using color, specified via setColor() method Draws monochrome bitmap in color buffer using color, specified via setColor() method. More...
 
void gfx_drawMonoBitmap (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *buf)
 
void drawBitmap4 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
 Draws 4-bit gray-color bitmap in color buffer. Draws 4-bit gray-color bitmap in color buffer. More...
 
void drawBitmap8 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
 Draws 8-bit color bitmap in color buffer. Draws 8-bit color bitmap in color buffer. More...
 
void drawBitmap16 (lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *bitmap)
 
void drawBuffer1 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *buffer) __attribute__((noinline))
 
void drawBuffer1Fast (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *buffer)
 
void drawBuffer4 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *buffer) __attribute__((noinline))
 
void drawBuffer8 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *buffer) __attribute__((noinline))
 
void drawBuffer16 (lcdint_t xpos, lcdint_t ypos, lcduint_t w, lcduint_t h, const uint8_t *buffer) __attribute__((noinline))
 
void clear ()
 
void fill (uint16_t color)
 
uint8_t printChar (uint8_t c)
 
size_t write (uint8_t c) __attribute__((noinline))
 
void printFixed (lcdint_t xpos, lcdint_t y, const char *ch, EFontStyle style=STYLE_NORMAL) __attribute__((noinline))
 
void printFixedN (lcdint_t xpos, lcdint_t y, const char *ch, EFontStyle style, uint8_t factor) __attribute__((noinline))
 
- Public Member Functions inherited from NanoDisplayBase< InterfacePCD8544< I > >
 NanoDisplayBase (InterfacePCD8544< I > &intf)
 
const NanoPoint offsetEnd () const
 
const NanoRect rect () const
 
lcduint_t width ()
 
lcduint_t height ()
 
void swapDimensions ()
 
void setColor (uint16_t color)
 
uint16_t getColor ()
 
void setBackground (uint16_t color)
 
void invertColors ()
 
InterfacePCD8544< I > & getInterface ()
 
void setFont (NanoFont &font)
 
void setFontSpacing (uint8_t spacing)
 
NanoFontgetFont ()
 
void setFixedFont (const uint8_t *progmemFont)
 
void setFixedFont (const uint8_t *progmemFont, const uint8_t *secondaryFont)
 
void setFreeFont (const uint8_t *progmemFont, const uint8_t *secondaryFont=nullptr)
 
void setTextCursor (lcdint_t x, lcdint_t y)
 

Additional Inherited Members

- Public Types inherited from NanoDisplayOps< NanoDisplayOps1< InterfacePCD8544< I > >, InterfacePCD8544< I > >
typedef NanoDisplayOps< NanoDisplayOps1< InterfacePCD8544< I > >, InterfacePCD8544< I > > T
 
- Static Public Attributes inherited from NanoDisplayOps1< InterfacePCD8544< I > >
static const uint8_t BITS_PER_PIXEL
 
- Protected Member Functions inherited from DisplayPCD8544_84x48< InterfacePCD8544< I > >
void beginController ()
 
void endController ()
 
- Protected Member Functions inherited from DisplayPCD8544< InterfacePCD8544< I > >
void beginDisplay ()
 
void endDisplay ()
 
- Protected Attributes inherited from DisplayPCD8544< InterfacePCD8544< I > >
int8_t m_rstPin
 indicates hardware reset pin used, -1 if it is not required
 
- Protected Attributes inherited from NanoDisplayBase< InterfacePCD8544< I > >
lcduint_t m_w
 width of NanoCanvas area in pixels
 
lcduint_t m_h
 height of NanoCanvas area in pixels
 
lcduint_t m_p
 number of bits, used by width value: 3 equals to 8 pixels width
 
lcdint_t m_cursorX
 current X cursor position for text output
 
lcdint_t m_cursorY
 current Y cursor position for text output
 
uint8_t m_textMode
 Flags for current NanoCanvas mode.
 
EFontStyle m_fontStyle
 currently active font style
 
uint16_t m_color
 current foreground color
 
uint16_t m_bgColor
 current background color
 
NanoFontm_font
 currently set font
 
InterfacePCD8544< I > & m_intf
 communication interface with the display
 

Detailed Description

template<typename I>
class DisplayPCD8544_84x48_CustomSPI< I >

Template class implements PCD8544 84x48 lcd display in 1 bit mode over custom SPI implementation (user-defined spi implementation). I - user custom spi class

Definition at line 209 of file lcd_pcd8544.h.

Constructor & Destructor Documentation

◆ DisplayPCD8544_84x48_CustomSPI()

template<typename I >
template<typename... Args>
DisplayPCD8544_84x48_CustomSPI< I >::DisplayPCD8544_84x48_CustomSPI ( int8_t  rstPin,
int8_t  dcPin,
Args &&...  data 
)
inline

Inits 84x48 lcd display over spi (based on PCD8544 controller): 1-bit mode.

Inits 84x48 lcd display over spi (based on PCD8544 controller): 1-bit mode

Parameters
rstPinpin controlling LCD reset (-1 if not used)
dcPinpin to use as data/command control pin
datavariable argument list for custom user spi interface.

Definition at line 221 of file lcd_pcd8544.h.

Member Function Documentation

◆ begin()

template<typename I >
void DisplayPCD8544_84x48_CustomSPI< I >::begin ( )
inlineoverridevirtual

Initializes PCD8544 lcd in 1-bit mode

Implements NanoDisplayOps< NanoDisplayOps1< InterfacePCD8544< I > >, InterfacePCD8544< I > >.

Definition at line 230 of file lcd_pcd8544.h.

◆ end()

template<typename I >
void DisplayPCD8544_84x48_CustomSPI< I >::end ( )
inlineoverridevirtual

Closes connection to display

Implements NanoDisplayOps< NanoDisplayOps1< InterfacePCD8544< I > >, InterfacePCD8544< I > >.

Definition at line 239 of file lcd_pcd8544.h.


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