• 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:

    1. What is the newest verson that still recognizes the MAG3110 on my Kickstarter Puck.js V1? (*
    2. What can I do to make 2v16 recognize the MAG3110 on my Kickstarter Puck.js V1?

    *) 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

    • Puck,js_1.0e.png
About

Avatar for allObjects @allObjects started