22 lines
498 B
JavaScript
Raw Normal View History

2020-09-14 08:17:22 +01:00
const LCD = require('raspberrypi-liquid-crystal');
const lcd = new LCD(1, 0x27, 20, 4);
lcd.beginSync();
module.exports = {
heading: async () => {
lcd.clearSync();
lcd.printLineSync(0, 'MiGenie Hot Water')
lcd.printLineSync(1, ' By Karl')
},
time: async () => {
lcd.setCursorSync(10,2);
lcd.printSync('time')
},
updateScreen: async (input) => {
lcd.setCursorSync(3, 0);
lcd.printLineSync(3, input)
},
}