diff --git a/WaterishOS-core2.0/WaterishOS-core2.0.ino b/WaterishOS-core2.0/WaterishOS-core2.0.ino index b65b7eb..bf99783 100644 --- a/WaterishOS-core2.0/WaterishOS-core2.0.ino +++ b/WaterishOS-core2.0/WaterishOS-core2.0.ino @@ -42,27 +42,12 @@ int menu; void drawmenu() { switch (menu) -case: '1': +{ + case '1': lcd.print(" Waterish OS OK "); - + break +} } -}; -class disp { - public: - LiquidCrystal_I2C lcd(0x27, 16, 2); - int menu; - void setmenu(int mnp) { - this->menu = mnp; - } - void drawmenu() - { - switch (this->menu) -case: '1': - this->lcd.print(" Waterish OS OK "); - - } -}; - void readA() { uint8_t pin = mcp.getLastInterruptPin(); uint8_t val = mcp.getLastInterruptPinValue();