improve some unimportend things
This commit is contained in:
+11
-5
@@ -57,6 +57,13 @@ void setup() {
|
||||
Serial.begin(115200);
|
||||
char wifiIndicator = 'X';
|
||||
|
||||
Wire.begin(21, 19);
|
||||
// i2cScanner();
|
||||
lcd = new LiquidCrystal_I2C(0x3F,16,2);
|
||||
lcd->init();
|
||||
lcd->clear();
|
||||
lcd->noBacklight();
|
||||
|
||||
Network::setIps();
|
||||
Network::setupMQTT();
|
||||
wifiIsActive = Network::connectWifi();
|
||||
@@ -87,10 +94,6 @@ void setup() {
|
||||
outputBuf->setSerialBT(serialBT);
|
||||
outputBuf->activateMqtt(false);
|
||||
|
||||
Wire.begin(21, 19);
|
||||
// i2cScanner();
|
||||
lcd = new LiquidCrystal_I2C(0x3F,16,2);
|
||||
lcd->init();
|
||||
lcd->backlight();
|
||||
lcd->printf("%c Kleiax-Rover %c", wifiIndicator, wifiIndicator);
|
||||
lcd->setCursor(0, 1);
|
||||
@@ -195,7 +198,10 @@ void makeMenu() {
|
||||
std::cout << "Dummy in Action" <<std::endl;
|
||||
};
|
||||
|
||||
auto restart = []() {
|
||||
auto restart = [&]() {
|
||||
lcd->clear();
|
||||
lcd->setCursor(0, 0);
|
||||
lcd->print("Rebooting ...");
|
||||
ESP.restart();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user