FEATURE: single character transmit support and special char enum
This commit is contained in:
parent
4f35324bc5
commit
68b05424a0
@ -21,6 +21,8 @@ namespace floatpump{
|
||||
return instance;
|
||||
}
|
||||
|
||||
enum SpecialChars {RightArrow = 0x7e};
|
||||
|
||||
public:
|
||||
// Explicitly delete these constructors
|
||||
LCD_I2C_Driver(LCD_I2C_Driver const&) = delete;
|
||||
@ -28,6 +30,7 @@ namespace floatpump{
|
||||
|
||||
// Functions sending text
|
||||
void LCDSendCString(char *str);
|
||||
void LCDSendChar(char chr);
|
||||
|
||||
// Functions for configuration
|
||||
void LCDClearDisplay(void);
|
||||
|
@ -88,6 +88,10 @@ namespace floatpump {
|
||||
while (*str) m_lcdSendData(*str++);
|
||||
}
|
||||
|
||||
void LCD_I2C_Driver::LCDSendChar(char chr) {
|
||||
m_lcdSendData(chr);
|
||||
}
|
||||
|
||||
void LCD_I2C_Driver::LCDClearDisplay(void) {
|
||||
m_lcdSendCmnd (0x01);
|
||||
HAL_Delay(1);
|
||||
|
Loading…
Reference in New Issue
Block a user