Hi all!
I want to make a volume control by rotation the Puckjs.
basically I want to get the angle value change once use press and rotate the Puck,
if the value large than a preset value, I call a volume up and then
reset and wait for another value pass.. I also need to know every time user rotate left or right..
I got xyz from the magnet sensor but I am not sure what to do next.
I did some search on the sin cos tan.. its quite complicate for me..
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 all!
I want to make a volume control by rotation the Puckjs.
basically I want to get the angle value change once use press and rotate the Puck,
if the value large than a preset value, I call a volume up and then
reset and wait for another value pass.. I also need to know every time user rotate left or right..
I got xyz from the magnet sensor but I am not sure what to do next.
I did some search on the sin cos tan.. its quite complicate for me..
any hints ? thanks!!!