To get something going quickly, you should be able to install an app called nRF UART.
You can then use that to connect to the Puck, and can send commands. For instance LED1.set() followed by a newline will turn the red LED on, and LED2.reset() will turn it off.
In the KickStarter video I used the Adafruit Bluefruit app, but you do need to have put a little bit of software onto the Puck first for that. It is possible to do it using the nRF UART App, but if you could connect to it on a desktop first with the Web IDE that'd be easiest.
If you upload the code below using the Web IDE, then disconnect and reconnect with the Adafruit app then you can use the buttons to control the LEDs:
Bluetooth.on('data', function(d) {
if (d[0]=="!" && d[1]=="B") {
var b = d.substr(2,2);
if (b[0]=="1") LED1.write(0|b[1]);
if (b[0]=="2") LED2.write(0|b[1]);
if (b[0]=="3") LED3.write(0|b[1]);
}
});
LoopbackA.setConsole(1);
Note that when you do that, you'll have to remove the battery and put it back in again if you want to reprogram it to something else.
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.
To get something going quickly, you should be able to install an app called
nRF UART
.You can then use that to connect to the Puck, and can send commands. For instance
LED1.set()
followed by a newline will turn the red LED on, andLED2.reset()
will turn it off.In the KickStarter video I used the Adafruit Bluefruit app, but you do need to have put a little bit of software onto the Puck first for that. It is possible to do it using the nRF UART App, but if you could connect to it on a desktop first with the Web IDE that'd be easiest.
If you upload the code below using the Web IDE, then disconnect and reconnect with the Adafruit app then you can use the buttons to control the LEDs:
Note that when you do that, you'll have to remove the battery and put it back in again if you want to reprogram it to something else.