![]() |
LCD ST7036 Library 1.2.0
LCD ST7036 Library following the LCD API 1.0
|
Public Member Functions | |
virtual void | command (uint8_t value)=0 |
virtual void | init ()=0 |
virtual void | setDelay (int, int)=0 |
virtual size_t | write (uint8_t)=0 |
virtual size_t | write (const uint8_t *buffer, size_t size)=0 |
virtual void | clear ()=0 |
virtual void | home ()=0 |
virtual void | on ()=0 |
virtual void | off ()=0 |
virtual void | cursor_on ()=0 |
virtual void | cursor_off ()=0 |
virtual void | blink_on ()=0 |
virtual void | blink_off ()=0 |
virtual void | setCursor (uint8_t Line, uint8_t Col)=0 |
virtual uint8_t | status ()=0 |
virtual void | load_custom_character (uint8_t char_num, uint8_t *rows)=0 |
virtual uint8_t | keypad ()=0 |
void | printstr (const char[]) |
virtual void | setBacklight (uint8_t new_val)=0 |
virtual void | setContrast (uint8_t new_val)=0 |
virtual void LCD::blink_off | ( | ) | [pure virtual] |
Deactivate cursor blinking. This is the default state when the display is initialised.
void blink_off ();
virtual void LCD::blink_on | ( | ) | [pure virtual] |
Activate cursor blink.
void blink_on();
virtual void LCD::clear | ( | ) | [pure virtual] |
Clear the display and set the cursor to 0,0
void clear();
virtual void LCD::command | ( | uint8_t | value | ) | [pure virtual] |
Send a command to the display
value[in] | Command to be sent to the display |
void command(uint8_t value);
virtual void LCD::cursor_off | ( | ) | [pure virtual] |
Turn off the cursor. This is the default state when the display is initialised.
void cursor_off();
virtual void LCD::cursor_on | ( | ) | [pure virtual] |
Turn on the cursor "_".
void cursor_on();
virtual void LCD::home | ( | ) | [pure virtual] |
Set the cursor to 0,0
void home();
virtual void LCD::init | ( | ) | [pure virtual] |
Initialise the display. Once created the object, this is the next operation that has to be called to initialise the display into a known state. It assumes that the I2C bus is not initialised and hence initialise the Wire interface.
Clear the display Set contrast levels Set the cursor at origens (0,0) Turn on the entire display
void init();
virtual uint8_t LCD::keypad | ( | ) | [pure virtual] |
NOT SUPPORTED
uint8_t keypad();
virtual void LCD::load_custom_character | ( | uint8_t | char_num, |
uint8_t * | rows | ||
) | [pure virtual] |
Load a custom character on the display. After adding a new character to the character set, the coordinates are set to (0, 0). This method should be called during initialization.
char_num[in] | Character to load onto the display, this display supports upto 16 user defined characters. |
rows[in] | Bitmap defining the character, the display assumes an array of 8 bytes per character. |
uint8_t load_custom_character(uint8_t char_num, uint8_t *rows);
virtual void LCD::off | ( | ) | [pure virtual] |
Switch the display off.
void off();
virtual void LCD::on | ( | ) | [pure virtual] |
virtual void LCD::setBacklight | ( | uint8_t | new_val | ) | [pure virtual] |
Sets the backlight level. If the backlight level is connected to a PWM pin, new_val will set a light level range between 0 and 255. If it is connected to a normal GPIO, from 0 to 127 it will be off and from 128 to 255 the backlight will be on. Backlight pin allocation on constructor.
new_val[in] | Backlight level of the display. Full range will only be available on pins with PWM support. |
uint8_t setBacklight();
virtual void LCD::setContrast | ( | uint8_t | new_val | ) | [pure virtual] |
Sets the LCD contrast level.
new_val[in] | The contrast range (0 to 255) has been mapped to 16 contrast levels on the display. |
uint8_t setContrast();
virtual void LCD::setCursor | ( | uint8_t | Line, |
uint8_t | Col | ||
) | [pure virtual] |
Set the cursor at the following coordinates (Line, Col). Initial value after initialization is (0,0).
Line[in] | Line where to put the cursor, range (0, max display lines-1) This display only take (0, 1) |
Col[in] | Colum where to put the cursor, range (0, max width+1) |
virtual void LCD::setDelay | ( | int | , |
int | |||
) | [pure virtual] |
Set a different delay to that in the library. It may be needed to delay sending commands or characters one after the other.
cmdDelay[in] | Delay after issuing a command |
charDelay[in] | Delay after issuing a character to the LCD |
void setDelay(int,int);
virtual uint8_t LCD::status | ( | ) | [pure virtual] |
virtual size_t LCD::write | ( | const uint8_t * | buffer, |
size_t | size | ||
) | [pure virtual] |
This is the write method used by the Print library. It allows printing characters to the display and new lines: print, println. It will write the value to the display and increase the cursor.
buffer[in] | buffer to write to the current LCD write position |
size[in] | size of the buffer |
virtual void write(uint8_t, size_t);
virtual size_t LCD::write | ( | uint8_t | ) | [pure virtual] |
This is the write method used by the Print library. It allows printing characters to the display and new lines: print, println. It will write the value to the display and increase the cursor.
value[in] | character to write to the current LCD write position |
virtual void write(uint8_t);