[Microbit-Python] Using micro-python to send simple radio commands?

Nicholas H.Tollervey ntoll at ntoll.org
Fri Jul 8 06:16:03 EDT 2016


On 08/07/16 10:52, David Whale wrote:
> Is it possible to make the power level changeable dynamically without
> having to set everything else? I have a homing beacon in pxt that works
> nicely by using dynamic power setting, its easy in pxt but looks harder
> in your python api to reconfigure every time just to change power level?
> 

Good point. I wonder if a reset() method would be helpful to, er, reset
things to sensible defaults, but config() only updates the setting you
pass in. Ergo, you could just do radio.config(power=3) to change the power.

Sound like a plan? Comments, suggestions..?

David, please add this as a comment to the linked to code in GitHub so
everyone involved in this development gets visibility on your
suggestion. I'll also answer on there too.

N.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/microbit/attachments/20160708/66b12cc9/attachment-0001.sig>


More information about the Microbit mailing list