FEATURE: single character transmit support and special char enum

This commit is contained in:
Robin Dietzel 2023-01-04 13:22:33 +01:00
parent 4f35324bc5
commit 68b05424a0
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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);