Closed microbuilder closed 7 years ago
An example of using the callback functionality with the DFU pin in IRQ mode is shown here (updated from the previous example which uses polling): https://github.com/adafruit/Adafruit_BluefruitLE_nRF51/tree/development/examples/callbacks_dfuirq ... requires firmware 0.7.1 or higher to run
Add the ability to raise an interrupt on any of the following events:
The DFU pin should be configured with an internal pullup resistor enabled, and active low to avoid any conflict with using the DFU pin to force entry into the bootloader at start up based on the pin state. DFU will remain high, and assert 'low' when the interrupt fires, so you should detect the interrupt on a falling edge.
By default, this behaviour should be disabled. It is only intended as a workaround to allow people to put the main MCU to sleep while they are waiting for BLE activity or something similar, rather than having to constantly poll for changes in state.