/**
Arduino Calculator
Copyright (C) 2020, Uri Shaked.
Released under the MIT License.
*/
#include <LiquidCrystal.h>
/* Display */
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
byte plus[8] = {
0x00,
0x04,
0x04,
0x1B,
0x04,
0x04,
0x00,
0x00
};
byte midplus[8] = {
0x00,
0x02,
0x14,
0x0E,
0x05,
0x08,
0x00,
0x00
};
byte sideplus[8] = {
0x00,
0x11,
0x0A,
0x04,
0x0A,
0x11,
0x00,
0x00
};
void setup() {
lcd.begin(16, 2);
lcd.createChar(1, plus);
lcd.createChar(2,sideplus);
lcd.createChar(3,midplus);
lcd.home();
}
void loop() {
lcd.write(1);
lcd.home();
delay(50);
lcd.write(3);
lcd.home();
delay(50);
lcd.write(2);
lcd.home();
delay(50);
lcd.write(3);
lcd.home();
delay(50);
if (settemp > )
}
Loading
epaper-2in9
epaper-2in9