a way to send text from the website to the banglejs app
Are you running your own app? If so, just define a function called myFunction and then send the code to call that. For example in the Bangle.js:
myFunction
function myFunction(txt) { g.clear(1); g.setFont("Vector",30).setFontAlign(0,0); g.drawString(txt, g.getWidth()/2, g.getHeight()/2); }
On the web page:
Puck.write('myFunction("MESSAGE")\n');
@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.
Are you running your own app? If so, just define a function called
myFunction
and then send the code to call that. For example in the Bangle.js:On the web page: