-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtest.ts
27 lines (26 loc) · 856 Bytes
/
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
dataStreamer.writeNumber(1 / 5, 1);
dataStreamer.writeLine();
dataStreamer.writeNumber(20 / 3, 2);
dataStreamer.writeLine();
dataStreamer.writeNumber(400 / 35, 3);
dataStreamer.writeLine();
dataStreamer.writeNumber(1000 / 2, 4);
dataStreamer.writeLine();
dataStreamer.writeNumber(1002, 5);
dataStreamer.writeLine();
dataStreamer.writeNumber(10000002 / 458, 6);
dataStreamer.writeLine();
dataStreamer.writeNumber(0, 7);
dataStreamer.writeLine();
dataStreamer.writeNumber(-1, 0);
dataStreamer.writeLine();
dataStreamer.writeNumber(-1000 / 3, 1);
dataStreamer.writeNumberArray([5, 2 / 5, 44 / 444, 5 / 5], 1);
forever(() => {
led.toggle(0, 0)
dataStreamer.writeNumber(input.lightLevel() / 0xff, 3)
dataStreamer.writeString(",")
dataStreamer.writeNumber(input.acceleration(Dimension.X) / 1024, 3)
dataStreamer.writeLine();
pause(50)
})