first commit
This commit is contained in:
20
include/LCDDisplay.hpp
Normal file
20
include/LCDDisplay.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
class LCDDisplay {
|
||||
private:
|
||||
uint8_t _lcd;
|
||||
void writeStr(std::string str);
|
||||
|
||||
public:
|
||||
LCDDisplay(std::string dev, uint32_t baud);
|
||||
~LCDDisplay();
|
||||
|
||||
void clear();
|
||||
void setContrast(uint8_t contrast);
|
||||
void setCursor(uint8_t row, uint8_t col);
|
||||
void writeLines(std::array<std::string, 4> lines);
|
||||
void writeSStream(std::stringstream& ss);
|
||||
};
|
||||
Reference in New Issue
Block a user