File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,13 @@ Functions
48
48
49
49
.. py :function :: on()
50
50
51
- Turns the radio on. This needs to be explicitly called since the radio
52
- draws power and takes up memory that you may otherwise need.
51
+ Turns the radio on.
52
+
53
+ Since MicroPython-on-micro:bit v1.1
54
+ the radio is turned on by default when the radio module is imported.
55
+ In earlier releases, to reduce power consumption until needed, this
56
+ function had to be explicitly called.
57
+ For those cases ``radio.off() `` can be called after import.
53
58
54
59
.. py :function :: off()
55
60
Original file line number Diff line number Diff line change @@ -107,10 +107,6 @@ We're going to use the radio module to create something akin to a swarm of
107
107
fireflies signalling to each other.
108
108
109
109
First ``import radio `` to make the functions available to your Python program.
110
- Then call the ``radio.on() `` function to turn the radio on. Since
111
- the radio draws power and takes up memory we've made it so *you * decide
112
- when it is enabled (there is, of course a ``radio.off() `` function).
113
-
114
110
At this point the radio module is configured to sensible defaults that make
115
111
it compatible with other platforms that may target the BBC micro:bit. It is
116
112
possible to control many of the features discussed above (such as channel and
Original file line number Diff line number Diff line change 7
7
# Create the "flash" animation frames. Can you work out how it's done?
8
8
flash = [Image ().invert ()* (i / 9 ) for i in range (9 , - 1 , - 1 )]
9
9
10
- # The radio won't work unless it's switched on.
11
- radio .on ()
12
-
13
10
# Event loop.
14
11
while True :
15
12
# Button A sends a "flash" message.
You can’t perform that action at this time.
0 commit comments