As noted, the Web IDE works fine and connects to the pixl but not the puck. The Windows IDE just gloms onto the first serial port it finds.
So I did try
<html> <head> </head> <body> <script src="https://www.puck-js.com/puck.js"></script> <button onclick="Puck.write('LED1.set();\n');">On!</button> <button onclick="Puck.write('LED1.reset();\n');">Off!</button> </body> </html>
(served from localhost) and it has the same problem -- finding the pixl but not the puck
as an FYI the puck is glowing green now that I replaced the battery. It appears to stay on and run down the battery.
@BobFrankston started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As noted, the Web IDE works fine and connects to the pixl but not the puck. The Windows IDE just gloms onto the first serial port it finds.
So I did try
(served from localhost) and it has the same problem -- finding the pixl but not the puck
as an FYI the puck is glowing green now that I replaced the battery. It appears to stay on and run down the battery.