I updated a Kickstarter Puck.js w/ most recent FW 2v16 using online Web IDE. Running the default code
Puck.magOn(); Puck.on('mag', function(xyz) { console.log(xyz); }); // Turn events off with Puck.magOff();
complained in the console:
> ____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v16 (c) 2021 G.Williams > Uncaught Error: Magnetometer not available on Puck.js Lite 1 at line 1 col 12 Puck.magOn(); ^ >
(Definitively not a battery level issue...)
After installing from url 2v00 - the oldest listed on the site for previous versions http://www.espruino.com/Download - above code works.
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v00 (c) 2018 G.Williams > { "x": -3341, "y": 3017, "z": 1275 } { "x": -3393, "y": 3067, "z": 1298 } { "x": -3398, "y": 3064, "z": 1299 } { "x": -3397, "y": 3067, "z": 1294 }
2 questions:
*) Looks like 2V14 is last one that works... (worked thru 2v06, was on before update, then 2v11, then 2v14: all ok; 2v15 shows same issue as 2v16).
1 Attachment
@allObjects 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.
I updated a Kickstarter Puck.js w/ most recent FW 2v16 using online Web IDE. Running the default code
complained in the console:
(Definitively not a battery level issue...)
After installing from url 2v00 - the oldest listed on the site for previous versions http://www.espruino.com/Download - above code works.
2 questions:
*) Looks like 2V14 is last one that works... (worked thru 2v06, was on before update, then 2v11, then 2v14: all ok; 2v15 shows same issue as 2v16).
1 Attachment