You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Sun 2019.03.24

    'what did I do wrong when uploading my code in my previous post?'

    Maybe nothing at all. Formatting of code inside Html form TextArea element can be a bit tricky for the browser parser. There have been a few hiccups I've seen.

    Thank you for being pro-active and including your snippet. It might be that the three trailing back-ticks need to be on a separate line, or a blank line separating, both leading and ending, the ticks and the included code block.

    i.e. blank line, three ticks, blank line, code block, blank line, three ticks, blank line



    Would you mind posting the link to the tutorial used, as I'm not able to locate what is being spoken about. Thanks



    EDIT
    I believe this might be the link:

    https://www.espruino.com/BLE%20Keyboard



    If so,

    ' as to why the example given in the puck tutorial has an "a" followed by "A"'

    IMO the example demonstrates how to structure the callback within the tap() function, and is using a modifier to demonstrate how to capitalize a letter. Most likely the same one is used to show capitalization with the least confusion.


    The behind the scenes Javascript - See file end for tap() function

    https://www.espruino.com/modules/ble_hid­_keyboard.js

    The reference

    https://www.espruino.com/Reference#l_NRF­_setServices



    While I defer a definitive answer to others, it might be that

    'I seem to reach a maximum series of characters (7)'

    beneath heading "Low Level control" (first link following EDIT above)

    'to send data. For Keyboards it must be an array of the form:'
    [modifier, reserved, key1, key2, key3, key4, key5, key6 ]

    and the tap() function only specify an array of 8 values. This might explain why the seventh gives the surprise that is witnessed.

About

Avatar for Robin @Robin started