bbcmicrobit / bbcmicrobit/micropython
New function radio.is_on()
Open
enhancement
- Dominant language
- C
- Stars
- 646
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
Hi. While the display module has functions `on()` `off()` and [`is_on()`](https://microbit-micropython.readthedocs.io/en/latest/display.html#microbit.display.is_on), the radio module has only `on()` and `off()`. Have you considered adding an `is_on()` function to query the state?
To save power, my program turns the radio off in certain modes. I'd like to check whether the radio is on before calling receive(). Currently I keep track of that in a separate variable.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.