-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ts
15 lines (15 loc) · 1.03 KB
/
test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
naturalScience.setTDSK(1.1)
naturalScience.mototRun(DIR.CW, 100)
basic.forever(function () {
naturalScience.requstdata()
naturalScience.setOLEDShowString(1, 7, 1, "UV:" + naturalScience.getUltraviolet())
naturalScience.setOLEDShowString(8, 16, 1, "-SOD:" + naturalScience.getSound())
naturalScience.setOLEDShowString(1, 7, 2, "TC:" + convertToText(naturalScience.getTVOC(CT.TVOC)))
naturalScience.setOLEDShowString(8, 16, 2, "-CO2:" + convertToText(naturalScience.getTVOC(CT.CO2)))
naturalScience.setOLEDShowString(1, 7, 3, "TE:" + naturalScience.getBME(BME.TEMP))
naturalScience.setOLEDShowString(8, 16, 3, "-WTE:" + naturalScience.getWatertemp())
naturalScience.setOLEDShowString(1, 7, 4, "LI:" + convertToText(naturalScience.getLight()))
naturalScience.setOLEDShowString(8, 16, 4, "-TDS:" + convertToText(naturalScience.getTDS()))
naturalScience.setOLEDShowString(1, 16, 5, "HU:" + naturalScience.getBME(BME.HUM))
naturalScience.setOLEDShowString(1, 16, 6, "PE:" + naturalScience.getBME(BME.PRESSURE))
})