![]() |
LCD ST7036 Library 1.2.0
LCD ST7036 Library following the LCD API 1.0
|
Public Member Functions | |
ST7036 (uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr) | |
ST7036 (uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr, int8_t backlightPin) | |
void | command (uint8_t value) |
void | init () |
void | setDelay (int, int) |
virtual size_t | write (uint8_t) |
virtual size_t | write (const uint8_t *buffer, size_t size) |
void | clear () |
void | home () |
void | on () |
virtual void | off () |
void | cursor_on () |
void | cursor_off () |
void | blink_on () |
void | blink_off () |
void | setCursor (uint8_t Line, uint8_t Col) |
ST7036::ST7036 | ( | uint8_t | num_lines, |
uint8_t | num_col, | ||
uint8_t | i2cAddr | ||
) |
Constructor for the display class
num_lines[in] | Number of lines in the display |
num_col[in] | Number of columns in the display |
i2cAddr[in] | i2c address of the display |
ST7036(uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr );
ST7036::ST7036 | ( | uint8_t | num_lines, |
uint8_t | num_col, | ||
uint8_t | i2cAddr, | ||
int8_t | backlightPin | ||
) |
Constructor for the display class with backlight allowcation pin.
num_lines[in] | Number of lines in the display |
num_col[in] | Number of columns in the display |
i2cAddr[in] | i2c address of the display |
backlightPin | initiales the backlight pin. |
ST7036(uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr );
void ST7036::blink_off | ( | ) |
Deactivate cursor blinking. This is the default state when the display is initialised.
void blink_off ();
void ST7036::blink_on | ( | ) |
Activate cursor blink.
void blink_on();
void ST7036::clear | ( | ) |
Clear the display and set the cursor to 0,0
void clear();
void ST7036::command | ( | uint8_t | value | ) |
Send a command to the display
value[in] | Command to be sent to the display |
void command(uint8_t value);
void ST7036::cursor_off | ( | ) |
Turn off the cursor. This is the default state when the display is initialised.
void cursor_off();
void ST7036::cursor_on | ( | ) |
Turn on the cursor "_".
void cursor_on();
void ST7036::home | ( | ) |
Set the cursor to 0,0
void home();
void ST7036::init | ( | ) |
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();
void ST7036::off | ( | ) | [virtual] |
Switch the display off.
void off();
void ST7036::on | ( | ) |
void ST7036::setCursor | ( | uint8_t | Line, |
uint8_t | Col | ||
) |
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) |
void ST7036::setDelay | ( | int | cmdDelay, |
int | charDelay | ||
) |
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);
size_t ST7036::write | ( | const uint8_t * | buffer, |
size_t | size | ||
) | [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);
size_t ST7036::write | ( | uint8_t | value | ) | [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);