@Robin, ddddohhh!..
copy-pasted w/o changing the 255 to 0...
Now:
1st, I wonder if code was saved before disconnect from IDE and before reconnect w/ bat in batIn. I'm not sure if that matters or not... powering conflict. 2nd, the write should be in the onInit() function that fires on power up. write() is a dynamic thing... pulses of different length over a particular time.
If you want test it connected to the IDE, do NOT connect the Bat+ to Espruino; just connect it to the LED strip; BUT note that the Bat- HAS to be connected to GND of Espruino AND neg- of LED strip at all times.
...and btw., a pic of your setup and bit amore about the steps you did / do, would be of great help to support you.
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.
@Robin, ddddohhh!..
copy-pasted w/o changing the 255 to 0...
Now:
1st, I wonder if code was saved before disconnect from IDE and before reconnect w/ bat in batIn. I'm not sure if that matters or not... powering conflict. 2nd, the write should be in the onInit() function that fires on power up. write() is a dynamic thing... pulses of different length over a particular time.
If you want test it connected to the IDE, do NOT connect the Bat+ to Espruino; just connect it to the LED strip; BUT note that the Bat- HAS to be connected to GND of Espruino AND neg- of LED strip at all times.
...and btw., a pic of your setup and bit amore about the steps you did / do, would be of great help to support you.