-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.js
56 lines (46 loc) · 998 Bytes
/
sample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Created by Taaheri on 2015-09-27.
*/
var _lcd = require("ilcd").iLCD;
var ic = 0;
setTimeout(function() {
_lcd.BackLightOn();
},1000);
setTimeout(function() {
_lcd.lineOut("hello World", 2);
},3000);
setTimeout(function() {
_lcd.ClearDisplay();
},5000);
setTimeout(function() {
_lcd.lineOut("11122334455", 1);
},7000);
setTimeout(function() {
_lcd.BackLightOff();
},8000);
setTimeout(function(){
_lcd.BackLightOn();
console.log("on");
},9000);
setTimeout(function(){
_lcd.DisplayOff();
console.log("dis off");
},10000);
setTimeout(function(){
_lcd.DisplayOn();
console.log("dis On");
},14000);
setTimeout(function() {
_lcd.lineOut("end of story", 1);
},15000);
/*
setInterval(function () {
_lcd.lineOut("Hi LCD ", 1);
var now = new Date();
var dateFormat = now.toISOString().substr(0, 10);
// by default address = 0x27
// _lcd.SetAddress(0x22);
_lcd.lineOut("T:" + dateFormat, 2);
ic++;
}, 1000);
*/