Thank you for your replay Robin.
That is the correct tutorial I was referring to.
I had thought that I may have reached the array limit on the tap(), but I'm unsure as I cannot find much detail about the function in documentation. I tried only sending the character's in small chunks, exectuing the function several times but this also failed:
Also I found reference using the puck.js for keyboard inputs over BLE on another topic, where Gordon suggests it would be possible at the tend of his first paragraph: http://forum.espruino.com/conversations/307801/
The other confusing thing is (which could be due to my lack of JS knowledge), when sending fewer characters (say 3 for example), why does this work:
> function sendCap() {
> // Send 'a'
> kb.tap(kb.KEY.A, 0, function() {
> // Followed by 'b'
> kb.tap(kb.KEY.B, 0, function() {
> // Followed by 'c'
> kb.tap(kb.KEY.C, 0);
> });
> });
>
> }
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.
Thank you for your replay Robin.
That is the correct tutorial I was referring to.
I had thought that I may have reached the array limit on the tap(), but I'm unsure as I cannot find much detail about the function in documentation. I tried only sending the character's in small chunks, exectuing the function several times but this also failed:
Also I found reference using the puck.js for keyboard inputs over BLE on another topic, where Gordon suggests it would be possible at the tend of his first paragraph:
http://forum.espruino.com/conversations/307801/
The other confusing thing is (which could be due to my lack of JS knowledge), when sending fewer characters (say 3 for example), why does this work:
but not this?:
Why is it that the tap() has to be nested like that?