-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsl01_if.ts
79 lines (66 loc) · 1015 Bytes
/
sl01_if.ts
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//% color=#444444 icon="\uf0eb" block="SL01"
namespace SL01
{
//%shim=sl01::begin
export function begin():boolean
{
return true
}
//%shim=sl01::poll
export function poll()
{
}
//%shim=sl01::getLUX
export function getLUX(): number
{
return 1
}
//%shim=sl01::getUVA
export function getUVA(): number
{
return 1
}
//%shim=sl01::getUVB
export function getUVB(): number
{
return 1
}
//%shim=sl01::getUVIndex
export function getUVIndex(): number
{
return 1
}
//%block="SL01 get LUX"
export function getlux(): number
{
poll()
return getLUX()
}
export function getuva(): number
{
poll()
return getUVA()
}
export function getuvb(): number
{
poll()
return getUVB()
}
//%block="SL01 get UVIndex"
export function getuvindex(): number
{
poll()
return getUVIndex()
}
//%shim=sl01::getHardwareID
export function getHardwareID(): number
{
return 1;
}
//%shim=sl01::checkVersion
export function checkVersion(): number
{
return 1;
}
begin();
}