aioble vs RGB LED shared hardware resources #13295
Unanswered
lievenleroy
asked this question in
RP2040 / Pico
Replies: 1 comment 2 replies
-
Updates:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Another aioble issue on Nano RP2040 Connect:
The board's RGB pixel is connected to the wifi/Bluetooth chip. So setting it requires talking over SPI to that chip.
I have this working using sample code from here. But once I initialize aioble, I can no longer reliably configure the pixel.
My BLE code is closely modeled on the temperature server example in the aioble Github. Roughly, my code looks like:
Either task running solo works fine, but if I run both tasks the pixel fails to blink. I'm guessing aioble service interrupts are stepping on other SPI communication in progress. Is there a way to suspend aioble activity for a period of time (critical section)? Or a mutex or other means that the resource should be shared through?
Beta Was this translation helpful? Give feedback.
All reactions