Nevermind, got it. A keyboard needs to look something like this:
exports.input = function(options) { options = options||{}; var text = options.text; if ("string"!=typeof text) text=""; SOME FUNCTIONS AND VARIABLES return new Promise((resolve,reject) => { layout = new Layout( { LAYOUT } ,{back: ()=>{ Bangle.setUI(); g.clearRect(Bangle.appRect); resolve(text); }}); g.clearRect(Bangle.appRect); layout.render(); }); };
I'll wrap it up into an app next.
@Sir_Indy 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.
Nevermind, got it. A keyboard needs to look something like this:
I'll wrap it up into an app next.