Update WaterishOS-core2.0.ino

This commit is contained in:
Siwat Sirichai 2019-08-10 20:12:54 +07:00
parent fa9d30763d
commit c3539c602b
1 changed files with 4 additions and 19 deletions

View File

@ -42,27 +42,12 @@ int menu;
void drawmenu()
{
switch (menu)
case: '1':
lcd.print(" Waterish OS OK ");
}
};
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 ");
case '1':
lcd.print(" Waterish OS OK ");
break
}
}
};
void readA() {
uint8_t pin = mcp.getLastInterruptPin();
uint8_t val = mcp.getLastInterruptPinValue();