-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsg34.ts
57 lines (46 loc) · 899 Bytes
/
sg34.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
//% color=190 weight=100 icon="\uf21e"
namespace sg34{
//% shim=max30105::setup_sg34
function setup(): number
{
return 1
}
//% shim=max30105::startParallel
function startParallel(u: ()=> void):number{
return 1;
}
//%block="SG34 get Red"
//%shim=max30105::getRedSG34
export function getRed():number
{
return 1
}
//%block="SG34 get IR"
//%shim=max30105::getIRSG34
export function getIR():number
{
return 1
}
//%block="SG34 get temperature"
//%shim=max30105::getTempSG34
export function getTemp():number
{
return 1
}
//%block="SG34 get SPO2"
//%shim=max30105::getSPO2SG34
export function getSPO2():number{
return 1
}
//%block="SG34 get BPM"
//%shim=max30105::getBPMSG34
export function getBPM():number{
return 1
}
//%block="SG34 get BPM Avg"
//%shim=max30105::getBPMAvgSG34
export function getBPMAvg():number{
return 1
}
setup()
}