You are reading a single comment by @Ciaran and its replies. Click here to read the full conversation.
  • Hoping someone can help. Basically I want to call a function when I click on my PuckJs. Trying to use setWatch on my Puck.js. Works fine from the https://www.espruino.com/ide/

    But when I try and call the setWatch function from a webpage using bluetooth I get errors:
    Errors:

    setWatch is undefined

    Code is:

    setWatch(function() {
      console.log("Pressed");
    }, BTN, { edge: "rising", debounce: 50, repeat: true });
    

    Also if I load the code to the device through the webIDE, I cannot see the console.log message in chrome debug tool.s

About

Avatar for Ciaran @Ciaran started