Feather nRF52840 Express Turn BLE OFF

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
sjgregorski
 
Posts: 2
Joined: Thu Feb 07, 2019 8:25 pm

Feather nRF52840 Express Turn BLE OFF

Post by sjgregorski »

I'm programming a Feather nRF52840 Express in the Arduino IDE. I can turn BLE ON and it works great. I'm using the Peripheral bleuart.ino example as my starting point. My question is how do I turn the BLE functionality OFF , even temporarily? I'm running code that reads a rotary encoder using hardware interrupts and I'm concerned that sometimes the BLE functionality running in the background is causing me to miss encoder counts. What I really want is a way to turn the BLE OFF and ON. Any ideas ? I've seen posts elsewhere where others are looking for the "Bluefruit.stop()" function but without luck. Thanks.

User avatar
jevada
 
Posts: 194
Joined: Fri Dec 15, 2017 5:29 am

Re: Feather nRF52840 Express Turn BLE OFF

Post by jevada »

If you switch BLE off, the nRF's radio will disconnect and probably it will generate an exception somewhere.
If you need super-tight timing, nRF52 provides a lot of hardware support through its PPI. You could simply connect a GPIOTE event to a counter task. No interrupts necessary...

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”