Text console library for ST7032 text LCD controller over I2C interface.
TextLCD_ST7032I2C Class Reference
Text console library for ST7032 text LCD controller over I2C interface. More...
#include <TextLCD_ST7032I2C.h>
Public Types | |
enum | Bias { Bias1_4, Bias1_5 } |
Bias select: 1/4 or 1/5. More... | |
Public Member Functions | |
TextLCD_ST7032I2C (PinName sda, PinName scl, uint8_t address, uint8_t columns, uint8_t rows) | |
Constructor of class TextLCD_ST7032I2C. | |
virtual | ~TextLCD_ST7032I2C () |
Destructor of class TextLCD_ST7032I2C. | |
void | reset () |
Hit hardware reset pin. | |
void | init (uint8_t osc, uint8_t rab, uint8_t contrast, Bias bias) |
Initialize controller. | |
void | cls () |
Clear display and set cursor to home. | |
void | locate (uint8_t column, uint8_t row) |
Set cursor position for next character. | |
void | iconOn () |
Enable icon display. | |
void | iconOff () |
Disable icon display. | |
void | setIcon (uint8_t iconAddr, uint8_t bits) |
Set icon display pattern. |
Detailed Description
Text console library for ST7032 text LCD controller over I2C interface.
Definition at line 14 of file TextLCD_ST7032I2C.h.
Member Enumeration Documentation
enum Bias |
Bias select: 1/4 or 1/5.
Definition at line 17 of file TextLCD_ST7032I2C.h.
Constructor & Destructor Documentation
TextLCD_ST7032I2C | ( | PinName | sda, |
PinName | scl, | ||
uint8_t | address, | ||
uint8_t | columns, | ||
uint8_t | rows | ||
) |
Constructor of class TextLCD_ST7032I2C.
- Parameters:
-
sda I2C SPI data output (MOSI) pin. scl SPI clock output (SCK) pin. address I2C address of the LCD device. columns Number of characters in a row. rows Number of rows.
Definition at line 9 of file TextLCD_ST7032I2C.cpp.
~TextLCD_ST7032I2C | ( | ) | [virtual] |
Destructor of class TextLCD_ST7032I2C.
Definition at line 26 of file TextLCD_ST7032I2C.cpp.
Member Function Documentation
void cls | ( | ) |
Clear display and set cursor to home.
Definition at line 71 of file TextLCD_ST7032I2C.cpp.
void iconOff | ( | ) |
Disable icon display.
Definition at line 93 of file TextLCD_ST7032I2C.cpp.
void iconOn | ( | ) |
Enable icon display.
Definition at line 88 of file TextLCD_ST7032I2C.cpp.
void init | ( | uint8_t | osc, |
uint8_t | rab, | ||
uint8_t | contrast, | ||
Bias | bias | ||
) |
Initialize controller.
- Parameters:
-
osc Oscillator configuration (0..7). rab Rab value setting (0..7). contrast Contrast setting (0..63). bias Bias configuration for your LCD.
Definition at line 42 of file TextLCD_ST7032I2C.cpp.
void locate | ( | uint8_t | column, |
uint8_t | row | ||
) |
Set cursor position for next character.
- Parameters:
-
column Column position indexed from 0. row Row position indexed from 0.
Definition at line 80 of file TextLCD_ST7032I2C.cpp.
void reset | ( | ) |
Hit hardware reset pin.
void setIcon | ( | uint8_t | iconAddr, |
uint8_t | bits | ||
) |
Set icon display pattern.
- Parameters:
-
iconAddr Icon address (0x00..0x0f). bits Icon bit pattern (0x00..0x1f).
Definition at line 98 of file TextLCD_ST7032I2C.cpp.
Generated on Mon Aug 1 2022 03:55:34 by
![doxygen](doxygen.png)