Avatar for Joakim

Joakim

Member since Aug 2014 • Last active Jan 2017
  • 3 conversations
  • 70 comments

Most recent activity

  • in Puck.js
    Avatar for Joakim

    I just had this issue in a 1v91 flashed puck (not the Uncaught Syntax error, but disconnections on save() and E.setBootCode()). I can reset() just fine, but it still crashes on save(). Can't remember what exactly I did to trigger this, but I was messing with NRF and listening for button presses to sleep/wake BLE. And I did have "save on send" enabled by accident. I also did a lot of hardware reset, reset(), save() and E.setBootCode() (roughly in that order) to try to fix things, but apparently I broke things even more :/

    The peek functions return the same as the others here, and the erasePage calls solved it.

  • in Puck.js
    Avatar for Joakim

    Couldn't there be false positives caused by a fluctuating magnetic field that the magnetometer picks up (or something like that, I'm not educated on magnetism)? It could appear as if the wearer was active, even though the person was immobile.

    Also, isn't this a field many are trying to get into ("e-Health")? There could be accelerometers out there that specialise at detecting falls.

  • in JavaScript
    Avatar for Joakim

    I made a noob mistake when publishing the package to NPM, it probably didn't work for anyone else but me :/ It should be fixed now, hopefully it works for everyone. It does require Node v6 or greater.

  • in News
    Avatar for Joakim

    Hope it reaches a lot of people :)

    Just a suggestion… To promote Puck.js on espruino.com, you could move it to the front of the slider. It feels like yesterday's news when it's the last side, while it's actually today's news.

  • in News
    Avatar for Joakim

    Add E.setLowPowerConnection(bool) to allow low power continuous connections to Puck.js

    Nice!! That didn't take long.

  • in Puck.js
    Avatar for Joakim

    This may be overkill, but I had an idea for something like Chrome Experiments meets JSFiddle for Puck.js. Where you can browse interesting projects and examples, try them out on your puck right away, and then edit the code. And easily add your own experiments/projects to the collection.

    But that sounds like a lot of work :)

    What I'd want to see on puck-js.com/go is an initial example that's super easy but immediately demonstrates how fun it can be. For example, after connecting, simply hit the button and something magical happens on the page. Maybe not unicorns and rainbows, but something crazy would be fun.

    Then, being mightily impressed, I'd like to be able to write some code myself, and see what other people are making. So there has to be links to the Web IDE and some good examples.

    But rather than just linking to examples, maybe having a short presentation of each? That way it's easier to get an impression of what they actually do, and what's possible to make with Puck.js.

  • in Puck.js
    Avatar for Joakim

    Nice, @daphtdazz! I was wondering how long till I'd be able to program pucks from my iPad :)
    Purchased.

  • in JavaScript
    Avatar for Joakim

    I've looked into loading Espruino modules straight from espruino.com/modules, and while that seems possible, I think It will have to wait untill I actually need is, I have enough on my plate as it is.

    If someone else wants to give it a shot, the relevant Rollup hooks appear to be resolveId and load.

  • in JavaScript
    Avatar for Joakim

    You're right of course! I think I skipped the transformForEspruino processor call when I was trying to get things to work, and honestly hadn't really understood how the plugin system works until now. Now that the processor call is back my code follows the same pipeline as sendCode, and it seems to be doing just the same (I'm not calling it directly because I want more control over output).

    Some more changes:

    • Better options
      • Now supports reset, save, setTime, BLE, audio, baudRate and throttle (all with Espruino's defaults)
      • Any other Espruino config options may be set using their uppercase names directly
      • Added output option for showing the output from Espruino when sending code
    • Detects and reports any uncaught JS errors after code has been sent (very useful)
    • Prettier CLI with colours and all

    I also figured out how to minify it even further, and added a tip for how to configure Uglify to be even uglier on the project page.

Actions