Last active
February 16, 2019 14:48
-
-
Save nbogie/c3adb467e5f57d08a0bce28a88fa49bd to your computer and use it in GitHub Desktop.
two values but 5 charts! Capture of the microbit using serial write numbers to write a 2-element array - code here: https://makecode.microbit.org/_7PtcruikCbPA Makecode generates multiple charts from the data stream received from the microbit, though in the simulator the chart is reliably rendered as two lines on one chart.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
6,249 | |
7,248 | |
7,248 | |
7,248 | |
6,249 | |
7,248 | |
7,248 | |
3,252 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
5,250 | |
6,249 | |
6,249 | |
6,249 | |
7,248 | |
7,248 | |
6,249 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
6,249 | |
7,248 | |
4,251 | |
0,255 | |
0,255 | |
0,255 | |
5,250 | |
6,249 | |
6,249 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
6,249 | |
0,255 | |
0,255 | |
1,254 | |
1,254 | |
1,254 | |
1,254 | |
2,253 | |
3,252 | |
4,251 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
6,249 | |
8,247 | |
7,248 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
5,250 | |
4,251 | |
4,251 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
0,255 | |
6,249 | |
0,255 | |
0,255 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
8,247 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 | |
7,248 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sep= | |
time (source1) data.0 time (source1) data.1 time (source1) data.7 time (source1) data.5 time (source1) time (source1) data.248 | |
7 time (source1) data.250 | |
5 time (source1) data.255 | |
0 | |
0 0 0 255 0 7 0 5 0 0 0 248 0 250 0 255 | |
0.535 0 0.535 255 0.287 4 0.121 5 0.059 255 0.287 251 0.121 250 0.02 255 | |
0.82 0 0.82 255 0.586 0 0.439 5 1.09 6 0.586 255 0.439 250 0.098 249 | |
1.106 0 1.106 255 1.117 0 0.72 5 1.146 249 1.117 255 0.72 250 0.368 255 | |
1.616 7 1.616 248 1.394 5 0.972 6 4.378 0 1.394 250 0.972 249 0.615 255 | |
1.898 7 1.898 248 1.677 6 1.458 7 4.433 255 1.677 249 1.458 248 1.006 248 | |
2.183 7 2.183 248 1.919 6 1.749 5 4.655 0 1.919 249 1.749 250 1.211 248 | |
2.46 6 2.46 249 2.204 0 2.279 5 4.662 255 2.204 255 2.279 250 1.439 248 | |
2.741 7 2.741 248 2.49 0 2.57 5 5.749 6 2.49 255 2.57 250 1.733 248 | |
3.021 7 3.021 248 2.766 0 3.102 5 5.805 249 2.766 255 3.102 250 1.995 248 | |
3.263 3 3.263 252 3.286 0 3.404 4 6.835 7 3.286 255 3.404 251 2.305 247 | |
3.541 0 3.541 255 3.548 0 3.654 4 6.897 248 3.548 255 3.654 251 2.544 248 | |
3.823 0 3.823 255 3.835 0 3.939 0 8.425 8 3.835 255 3.939 255 2.818 248 | |
4.108 0 4.108 255 4.117 0 4.493 0 8.485 6 4.117 255 4.493 255 3.108 248 | |
4.387 0 4.387 255 4.404 0 5.008 0 8.489 249 4.404 255 5.008 255 3.397 248 | |
5.194 5 5.194 250 4.869 0 5.294 0 9.579 0 4.869 255 5.294 255 3.911 248 | |
5.477 6 5.477 249 5.176 0 7.391 0 9.639 255 5.176 255 7.391 255 4.201 248 | |
5.764 6 5.764 249 5.234 0 11.761 0 5.234 255 4.444 248 | |
6.281 7 6.281 248 5.475 6 11.818 255 5.475 249 4.718 24 | |
6.568 7 6.568 248 5.755 0 15.32 1 5.755 255 5.002 248 | |
6.858 6 6.858 249 6.021 0 16.14 2 6.021 255 5.288 248 | |
7.365 7 7.365 248 6.317 1 16.143 2 6.317 254 5.57 248 | |
26.165 0 6.854 1 16.145 53 6.854 254 | |
26.185 0 7.135 1 16.686 4 7.135 254 | |
26.263 6 7.686 3 16.687 251 7.686 252 | |
26.533 0 8.211 5 19.686 8 8.211 250 | |
26.78 0 20.504 5 | |
27.171 7 20.56 250 | |
27.376 7 21.332 5 | |
27.604 7 21.392 250 | |
27.898 7 22.702 0 | |
28.16 7 22.714 255 | |
28.47 8 23.249 0 | |
28.709 7 24.065 0 | |
28.983 7 24.346 0 | |
29.273 7 24.348 255 | |
29.562 7 29.536 7 | |
30.076 7 29.603 248 | |
30.366 7 30.64 8 | |
30.609 7 | |
30.883 7 | |
31.167 7 | |
31.453 7 | |
31.735 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basic.forever(function () { | |
serial.writeNumbers([input.lightLevel(), 255 - input.lightLevel()]) | |
basic.pause(80) | |
}) |
Author
nbogie
commented
Feb 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment