From c3539c602b3a7abc244adfba06c5626c51a151f1 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sat, 10 Aug 2019 20:12:54 +0700 Subject: [PATCH] Update WaterishOS-core2.0.ino --- WaterishOS-core2.0/WaterishOS-core2.0.ino | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) 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();