Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
LiquidCrystal_I2C (uint8_t lcd_Addr) | |
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t backlighPin, t_backlighPol pol) | |
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs) | |
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs, uint8_t backlighPin, t_backlighPol pol) | |
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) | |
LiquidCrystal_I2C (uint8_t lcd_Addr, uint8_t En, uint8_t Rw, uint8_t Rs, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7, uint8_t backlighPin, t_backlighPol pol) | |
virtual void | begin (uint8_t cols, uint8_t rows, uint8_t charsize=LCD_5x8DOTS) |
virtual void | send (uint8_t value, uint8_t mode) |
void | setBacklightPin (uint8_t value, t_backlighPol pol) |
void | setBacklight (uint8_t value) |
void | clear () |
void | home () |
void | noDisplay () |
void | display () |
void | noBlink () |
void | blink () |
void | noCursor () |
void | cursor () |
void | scrollDisplayLeft () |
void | scrollDisplayRight () |
void | leftToRight () |
void | rightToLeft () |
void | moveCursorLeft () |
void | moveCursorRight () |
void | autoscroll () |
void | noAutoscroll () |
void | createChar (uint8_t location, uint8_t charmap[]) |
void | setCursor (uint8_t col, uint8_t row) |
void | backlight (void) |
void | noBacklight (void) |
void | on (void) |
void | off (void) |
virtual void | write (uint8_t value) |
size_t | write (const char *str) |
Writes a c-string to output stream. More... | |
virtual size_t | write (const uint8_t *buffer, size_t size) |
Writes characters from a buffer to output stream. More... | |
size_t | write (const char *buffer, size_t size) |
Writes characters from a buffer to output stream. More... | |
int | getWriteError () |
Gets last error. More... | |
void | clearWriteError () |
Clears the last write error. More... | |
size_t | print (char) |
Prints a single character to output stream. More... | |
size_t | print (const char[]) |
Prints a c-string to output stream. More... | |
size_t | print (unsigned long, int base=DEC) |
Prints a number to output stream. More... | |
size_t | print (long, int base=DEC) |
Prints a number to output stream. More... | |
size_t | print (unsigned int, int base=DEC) |
size_t | print (unsigned char, int base=DEC) |
size_t | print (int, int base=DEC) |
Prints a number to output stream. More... | |
size_t | print (double, int digits=2) |
Prints number to output stream. More... | |
size_t | print (const Printable &p) |
Prints a Printable object to output stream. More... | |
size_t | print (const String &s) |
Prints a String to output stream. More... | |
size_t | println (void) |
Prints a newline to output stream. More... | |
size_t | println (const char[]) |
Prints a c-string to output stream, appending newline. More... | |
size_t | println (char) |
Prints a single character to output stream, appending newline. More... | |
size_t | println (unsigned char, int base=DEC) |
Prints a number to output stream, appending newline. More... | |
size_t | println (unsigned int, int base=DEC) |
size_t | println (unsigned long, int base=DEC) |
size_t | println (int, int base=DEC) |
Prints a number to output stream, appending newline. More... | |
size_t | println (long, int base=DEC) |
Prints a number to output stream, appending newline. More... | |
size_t | println (double, int digits=2) |
Prints a number to output stream, appending newline. More... | |
size_t | println (const Printable &p) |
Prints a Printable object to output stream, appending newline. More... | |
size_t | println (const String &s) |
Prints a String to output stream, appending newline. More... | |
size_t | printf (const char *fmt,...) |
Prints a formatted c-string to output stream. More... | |
Protected Member Functions | |
void | setWriteError (int err=1) |
Protected Attributes | |
uint8_t | _displayfunction |
uint8_t | _displaycontrol |
uint8_t | _displaymode |
uint8_t | _numlines |
uint8_t | _cols |
t_backlighPol | _polarity |
LiquidCrystal_I2C::LiquidCrystal_I2C | ( | uint8_t | lcd_Addr | ) |
LiquidCrystal_I2C::LiquidCrystal_I2C | ( | uint8_t | lcd_Addr, |
uint8_t | En, | ||
uint8_t | Rw, | ||
uint8_t | Rs | ||
) |
Class constructor. Initializes class variables and defines the I2C address of the LCD. The constructor does not initialize the LCD.
lcd_Addr[in] | I2C address of the IO expansion module. For I2CLCDextraIO, the address can be configured using the on board jumpers. |
En[in] | LCD En (Enable) pin connected to the IO extender module |
Rw[in] | LCD Rw (Read/write) pin connected to the IO extender module |
Rs[in] | LCD Rs (Reset) pin connected to the IO extender module |
LiquidCrystal_I2C::LiquidCrystal_I2C | ( | uint8_t | lcd_Addr, |
uint8_t | En, | ||
uint8_t | Rw, | ||
uint8_t | Rs, | ||
uint8_t | d4, | ||
uint8_t | d5, | ||
uint8_t | d6, | ||
uint8_t | d7 | ||
) |
Class constructor. Initializes class variables and defines the I2C address of the LCD. The constructor does not initialize the LCD.
lcd_Addr[in] | I2C address of the IO expansion module. For I2CLCDextraIO, the address can be configured using the on board jumpers. |
En[in] | LCD En (Enable) pin connected to the IO extender module |
Rw[in] | LCD Rw (Read/write) pin connected to the IO extender module |
Rs[in] | LCD Rs (Reset) pin connected to the IO extender module |
d4[in] | LCD data 0 pin map on IO extender module |
d5[in] | LCD data 1 pin map on IO extender module |
d6[in] | LCD data 2 pin map on IO extender module |
d7[in] | LCD data 3 pin map on IO extender module |
|
inherited |
Turns on automatic scrolling of the LCD. Turns on automatic scrolling of the LCD. This causes each character output to the display to push previous characters over by one space. If the current text direction is left-to-right (the default), the display scrolls to the left; if the current direction is right-to-left, the display scrolls to the right. This has the effect of outputting each new character to the same location on the LCD.
none |
|
inherited |
Switch-on the LCD backlight. Switch-on the LCD backlight. The setBacklightPin has to be called before setting the backlight for this method to work.
|
virtual |
LCD initialization and associated HW. Initializes the LCD to a given size (col, row). This methods initializes the LCD, therefore, it MUST be called prior to using any other method from this class or parent class.
The begin method can be overloaded if necessary to initialize any HW that is implemented by a library and can't be done during construction, here we use the Wire class.
cols[in] | the number of columns that the display has |
rows[in] | the number of rows that the display has |
charsize[in] | size of the characters of the LCD: LCD_5x8DOTS or LCD_5x10DOTS. |
Reimplemented from LCD.
|
inherited |
|
inherited |
|
inlineinherited |
Clears the last write error.
|
inherited |
Creates a custom character for use on the LCD. Create a custom character (glyph) for use on the LCD. Most chipsets only support up to eight characters of 5x8 pixels. Therefore, this methods has been limited to locations (numbered 0 to 7).
The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on screen, write()/print() its number, i.e. lcd.print (char(x)); // Where x is 0..7.
location[in] | LCD memory location of the character to create (0 to 7) |
charmap[in] | the bitmap array representing each row of the character. |
|
inherited |
|
inherited |
Turns on the LCD display. Turns on the LCD display, after it's been turned off with noDisplay(). This will restore the text (and cursor location) that was on the display prior to calling noDisplay().
none |
|
inlineinherited |
Gets last error.
int | Error number of last write error |
|
inherited |
|
inherited |
|
inherited |
Moves the cursor one space to the left.
none |
|
inherited |
Moves the cursor one space to the right.
none |
|
inherited |
|
inherited |
Switch-off the LCD backlight. Switch-off the LCD backlight. The setBacklightPin has to be called before setting the backlight for this method to work.
|
inherited |
Turns off the blinking of the LCD cursor.
none |
|
inherited |
Hides the LCD cursor.
none |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Prints a single character to output stream.
size_t | Quantity of characters written to stream |
|
inherited |
Prints a c-string to output stream.
char[] | c-string to print |
size_t | Quantity of characters written to output stream |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream.
unsigned long | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
unsigned int | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
unsigned char | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream.
long | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream.
int | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints number to output stream.
Prints a number to output stream.
double | Number to print |
int | Decimal places to show |
size_t | Quantity of characters written to output stream |
double | Number to print |
digits | The decimal places to print (Default: 2, e.g. 21.35) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a Printable object to output stream.
p | Object to print |
size_t | Quantity of characters written to stream |
|
inherited |
|
inherited |
Prints a formatted c-string to output stream.
fmt | Pointer to formated c-string to print |
... | Parameters for placeholders within formated string |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a newline to output stream.
Prints | newline to output stream |
size_t | Quantity of characters written to output stream |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a c-string to output stream, appending newline.
char[] | c-string to print |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a single character to output stream, appending newline.
char | Character to print |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream, appending newline.
unsigned char | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
unsigned int | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
unsigned long | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream, appending newline.
int | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream, appending newline.
long | Number to print |
base | The base for output (Default: Decimal (base 10)) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a number to output stream, appending newline.
double | Number to print |
digits | The decimal places to print (Default: 2, e.g. 21.35) |
size_t | Quantity of characters written to stream |
|
inherited |
Prints a Printable object to output stream, appending newline.
p | Object to print |
size_t | Quantity of characters written to stream |
|
inherited |
|
inherited |
Set the direction for text written to the LCD to right-to-left. Set the direction for text written to the LCD to right-to-left. All subsequent characters written to the display will go from right to left, but does not affect previously-output text.
left-to-right is the default configuration.
none |
|
inherited |
Scrolls the contents of the display (text and cursor) one space to the left.
none |
|
inherited |
Scrolls the contents of the display (text and cursor) one space to the right.
none |
|
virtual |
Send a particular value to the LCD. Sends a particular value to the LCD for writing to the LCD or as an LCD command.
Users should never call this method.
value[in] | Value to send to the LCD. |
mode[in] | DATA - write to the LCD CGRAM, COMMAND - write a command to the LCD. |
Reimplemented from LCD.
|
virtual |
Switch-on/off the LCD backlight. Switch-on/off the LCD backlight. The setBacklightPin has to be called before setting the backlight for this method to work.
value | backlight mode (HIGH|LOW) |
Reimplemented from LCD.
|
virtual |
Sets the pin to control the backlight. Sets the pin in the device to control the backlight. This device doesn't support dimming backlight capability.
0 | backlight off, 1..255: backlight on. |
Reimplemented from LCD.
|
inherited |
|
inlineinherited |
Writes a c-string to output stream.
str | Pointer to c-string |
size_t | Quantity of characters written to stream |
|
virtualinherited |
Writes characters from a buffer to output stream.
buffer | Pointer to character buffer |
size | Quantity of characters to write |
size_t | Quantity of characters written to stream |
Reimplemented in MemoryDataStream, and TwoWire.
|
inlineinherited |
Writes characters from a buffer to output stream.
buffer | Pointer to character buffer |
size | Quantity of characters to write |
size_t | Quantity of characters written to stream |
|
virtualinherited |