-
Notifications
You must be signed in to change notification settings - Fork 9
/
test.ts
28 lines (24 loc) · 1.08 KB
/
test.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
/**
* Andy England @ SparkFun Electronics
* September 6, 2018
* Development environment specifics:
* Written in Microsoft Makecode
* Tested with a SparkFun gatorEnvironment sensor and micro:bit
*
* This code is released under the [MIT License](http://opensource.org/licenses/MIT).
* Please review the LICENSE.md file included with this example. If you have any questions
* or concerns with licensing, please contact [email protected].
* Distributed as-is; no warranty is given.
*/
/**
* Functions to operate the gatorEnvironment sensor
*/
gatorEnvironment.beginEnvironment()
basic.forever(function () {
serial.writeLine("" + gatorEnvironment.measurement(MeasurementType.degreesC))
serial.writeLine("" + gatorEnvironment.measurement(MeasurementType.degreesF))
serial.writeLine("" + gatorEnvironment.measurement(MeasurementType.humidity))
serial.writeLine("" + gatorEnvironment.measurement(MeasurementType.pressure))
serial.writeLine("" + gatorEnvironment.measurement(MeasurementType.eCO2))
serial.writeLine("" + gatorEnvironment.measurement(MeasurementType.TVOC))
})