www.keyestudio.com
Complete Program:
Click
"
JavaScript"
code:
Download code 1 to micro:bit board, keep USB cable connected and
to
view
the
"on
start": command block runs
once to start program.
Serial redirects to USB
The
program
under
"forever" runs cyclically.
Serial write value "X"=acceleration
value on x axis
Serial write value "Y"=acceleration
value on y axis
Serial write value "Z"=acceleration
value on z axis
corresponding
the
block
JavaScript
150