The easiest is probably just:
function update() { var data = [ analogRead(D2)*255, analogRead(D3)*255, analogRead(D4)*255, analogRead(D5)*255, ]; NRF.setAdvertising({},{ manufacturer:0x0590, manufacturerData:data }); } setInterval(update, 3000);
@Gordon 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.
The easiest is probably just: