Text console library for ST7565 graphics LCD controller over SPI interface.
Dependents: TextLCD_ST7565SPI_Test OpPanel_Offline OpPanel_Offline_cmake_gcc_arm_NUCLEO_F303RENew
TextLCD_ST7565SPI Class Reference
Text console library for ST7565 graphics LCD controller over SPI interface. More...
#include <TextLCD_ST7565SPI.h>
Public Types | |
enum | Bias { Bias1_7, Bias1_9 } |
Bias select: 1/7 or 1/9. More... | |
Public Member Functions | |
TextLCD_ST7565SPI (PinName mosi, PinName sck, PinName cs, PinName rs, PinName rst, uint8_t columns, uint8_t rows) | |
Constructor of class TextLCD_ST7565SPI. | |
virtual | ~TextLCD_ST7565SPI () |
Destructor of class TextLCD_ST7565SPI. | |
void | reset () |
Hit hardware reset pin. | |
void | init (uint8_t v0, 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. |
Detailed Description
Text console library for ST7565 graphics LCD controller over SPI interface.
Definition at line 12 of file TextLCD_ST7565SPI.h.
Member Enumeration Documentation
enum Bias |
Bias select: 1/7 or 1/9.
Definition at line 15 of file TextLCD_ST7565SPI.h.
Constructor & Destructor Documentation
TextLCD_ST7565SPI | ( | PinName | mosi, |
PinName | sck, | ||
PinName | cs, | ||
PinName | rs, | ||
PinName | rst, | ||
uint8_t | columns, | ||
uint8_t | rows | ||
) |
Constructor of class TextLCD_ST7565SPI.
- Parameters:
-
mosi SPI data output (MOSI) pin. sck SPI clock output (SCK) pin. cs SPI Chip select (CS) pin. rs Register select (RS or A0) pin. rst Hardware reset (RST) pin. columns Number of characters in a row. rows Number of rows.
Definition at line 156 of file TextLCD_ST7565SPI.cpp.
~TextLCD_ST7565SPI | ( | ) | [virtual] |
Destructor of class TextLCD_ST7565SPI.
Definition at line 184 of file TextLCD_ST7565SPI.cpp.
Member Function Documentation
void cls | ( | ) |
Clear display and set cursor to home.
Definition at line 235 of file TextLCD_ST7565SPI.cpp.
void init | ( | uint8_t | v0, |
uint8_t | contrast, | ||
Bias | bias | ||
) |
Initialize controller.
- Parameters:
-
v0 Internal V0 setting (0..7). contrast Contrast setting (0..63). bias Bias configuration for your LCD.
Definition at line 208 of file TextLCD_ST7565SPI.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 244 of file TextLCD_ST7565SPI.cpp.
void reset | ( | ) |
Hit hardware reset pin.
Definition at line 191 of file TextLCD_ST7565SPI.cpp.
Generated on Wed Jul 13 2022 18:32:15 by 1.7.2