Hi everyone. I'm trying to write a code that give the acceleration of X axis and, if it's major than 45° something happens. Using
Microbit.accel()
I have a string like this
{ "x": 0.115234375, "y": -0.37109375, "z": -0.951171875 }
First of all, what is this measure unit? How can I get degrees? And....is there a way to get X, Y and Z separately?
Thanks
@coat started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi everyone.
I'm trying to write a code that give the acceleration of X axis and, if it's major than 45° something happens.
Using
I have a string like this
First of all, what is this measure unit?
How can I get degrees?
And....is there a way to get X, Y and Z separately?
Thanks