It'd be great if you could - thanks! Please could you try and make it so that advertising_init and jsble_advertising_start are merged on SDK13 as well? It's nice to try and keep the ifdef nightmare as small as possible :)
I guess there might be a different function to nrf_gpio_pin_write needed for GPIO1? If so, I'd add an 'if' based on pinInfo[pin].port and ensure that the port gets set correctly in the BOARD.py file.
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.
It'd be great if you could - thanks! Please could you try and make it so that advertising_init and jsble_advertising_start are merged on SDK13 as well? It's nice to try and keep the ifdef nightmare as small as possible :)
For the IO, I'd check
jshPinSetValue
and similar stuff injshardware.c
: https://github.com/espruino/Espruino/blob/master/targets/nrf5x/jshardware.c#L652I guess there might be a different function to
nrf_gpio_pin_write
needed for GPIO1? If so, I'd add an 'if' based onpinInfo[pin].port
and ensure that the port gets set correctly in the BOARD.py file.