You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi,

    Sorry for the delay. The issue is you're running that command in the web browser, and not on the Puck itself.

    For instance to set the LED you do Puck.write("digitalWrite(LED1,1);\n"); not just digitalWrite(LED1,1);

    So what you need is:

    Puck.eval("Puck.getBatteryPercentage()",­ function(value) {

Avatar for Gordon @Gordon started