just have default baud in hpp file
This commit is contained in:
@@ -9,7 +9,7 @@ class LCDDisplay {
|
|||||||
void writeStr(std::string str);
|
void writeStr(std::string str);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LCDDisplay(std::string dev, uint32_t baud);
|
LCDDisplay(std::string dev, uint32_t baud = 0010002); // from termios-baud.h, B115200
|
||||||
~LCDDisplay();
|
~LCDDisplay();
|
||||||
|
|
||||||
// custom char array
|
// custom char array
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -155,7 +155,7 @@ int main(int argc, char *argv[]) {
|
|||||||
daemon_mode = (argc > 1 && std::string(argv[1]) == "-d");
|
daemon_mode = (argc > 1 && std::string(argv[1]) == "-d");
|
||||||
|
|
||||||
/* init lcd and chars, set contrast and backlight */
|
/* init lcd and chars, set contrast and backlight */
|
||||||
LCDDisplay lcd(LCD_PORT, B115200);
|
LCDDisplay lcd(LCD_PORT);
|
||||||
std::array<std::string, 4> lines;
|
std::array<std::string, 4> lines;
|
||||||
lcd.setCustomChar(0, {16, 6, 9, 8, 8, 9, 6, 0}); // celcius
|
lcd.setCustomChar(0, {16, 6, 9, 8, 8, 9, 6, 0}); // celcius
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user