bbcmicrobit / bbcmicrobit/micropython

New function radio.is_on()

Open
#404 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.