LCDGFX LCD display driver  1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI
Print Class Referenceabstract

Implements own Print class for plain AVR and Linux environment. More...

#include <Print_internal.h>

Public Member Functions

 Print ()
 Constructor to create Print class object.
 
virtual size_t write (uint8_t ch)=0
 abstract function to be defined in inherited classes More...
 
size_t print (const char *str)
 Prints string via write() More...
 
size_t print (int n)
 Prints number via write() More...
 
size_t println (const char *str)
 Prints string via write() and goes to next line. More...
 
size_t println (int data)
 Prints number via write() and goes to next line. More...
 

Detailed Description

Implements own Print class for plain AVR and Linux environment.

Definition at line 43 of file Print_internal.h.

Member Function Documentation

◆ print() [1/2]

size_t Print::print ( const char *  str)
inline

Prints string via write()

Parameters
strstring to print
Returns
returns number of printed symbols

Definition at line 63 of file Print_internal.h.

◆ print() [2/2]

size_t Print::print ( int  n)
inline

Prints number via write()

Parameters
ninteger to print
Returns
returns number of printed symbols

Definition at line 79 of file Print_internal.h.

◆ println() [1/2]

size_t Print::println ( const char *  str)
inline

Prints string via write() and goes to next line.

Parameters
strstring to print
Returns
returns number of printed symbols

Definition at line 91 of file Print_internal.h.

◆ println() [2/2]

size_t Print::println ( int  data)
inline

Prints number via write() and goes to next line.

Parameters
datainteger to print
Returns
returns number of printed symbols

Definition at line 103 of file Print_internal.h.

◆ write()

virtual size_t Print::write ( uint8_t  ch)
pure virtual

abstract function to be defined in inherited classes

Parameters
chchar to print
Returns
returns number of printed symbols

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