• Nice, thanks for posting up! Nice article.

    @oesterle's tweaks look really good.

    Just to add though:

    • Web IDE - where did you actually hit that bug? Was it on https://www.espruino.com/ide/ or had you tried to get it running directly from GitHub? Also, the way the IDE's designed that shouldn't have actually stopped it from working - it just disabled the one plugin.
    • Your issue with setWatch is you're getting a callback when the button is pressed, and you're then checking against the time it was previously released. You're actually looking at the amount of time the button has been released for, rather than how long it was pressed. If you change rising to falling it'll work great.
    • With the magnetometer I'd check against mag.x>100 or something. In a lot of cases, just rotating the Puck could cause the earth's magnetic field to change the measurement so x flipped sign - last thing you want is to randomly go one slide back :)
About

Avatar for Gordon @Gordon started