我正在尝试让我的液晶显示器关闭背光灯并再次打开。
打开它的命令:lcd.noBacklight();
工作正常,但我不知道如何再次打开它。
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
var lcd = new five.LCD({
controller: "PCF8574T"
});
lcd.cursor(0, 0).print("1 Hello Teste");
lcd.cursor(1, 0).print("2 Hello Teste");
lcd.cursor(2, 0).print("3 Hello Teste");
lcd.cursor(3, 0).print("4 Hello Teste");
lcd.noBacklight();
setTimeout(() => {
lcd.yesBacklight(); //Here I don't know what to do
}, 1500);
setInterval(() => {
lcd.noBacklight();
}, 1500);
});
我怎么能重新打开它?