That definitely sounds like the right strategy, starting from a known state.
I ran the flash in code #9 and loaded the new firmware, then ran the code again and initially eveything was ok. It paired after being un-paired everything worked as expected, yay. Then I loaded the HID code in #8 and then un-paired and re-paired, everything seemed to be working it appeared as a keyboard device but I tested it and the button was not registering key commands. Un-paired it and tried to repair but this time it wasn't re-pairing, damn.
Seems to be something to do with being a HID device.
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.
That definitely sounds like the right strategy, starting from a known state.
I ran the flash in code #9 and loaded the new firmware, then ran the code again and initially eveything was ok. It paired after being un-paired everything worked as expected, yay. Then I loaded the HID code in #8 and then un-paired and re-paired, everything seemed to be working it appeared as a keyboard device but I tested it and the button was not registering key commands. Un-paired it and tried to repair but this time it wasn't re-pairing, damn.
Seems to be something to do with being a HID device.