Skip to content

Commit e033289

Browse files
Update current APIs in readme (#11)
* Update current APIs in readme * Capital Prevent and Allow Co-authored-by: Martin Williams <martinwork@users.noreply.github.com>
1 parent 6cd6123 commit e033289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ The ``||power.lowPowerPause(ms)||`` block will ask the micro:bit to sleep for a
2323

2424
In low power mode, the micro:bit is asleep, and your program is paused. When the micro:bit wakes up to full power mode, your program continues from the point it stopped.
2525

26-
You can use the ``||power.lowPowerEnable(PowerDown.prevent)||`` and ``||power.lowPowerEnable(PowerDown.allow)||`` blocks to block low power requests until the code between the two blocks has finished running. It is expected that you would use these blocks in pairs.
26+
You can use the ``||power.lowPowerEnable(LowPowerEnable.Prevent)||`` and ``||power.lowPowerEnable(LowPowerEnable.Allow)||`` blocks to block low power requests until the code between the two blocks has finished running. It is expected that you would use these blocks in pairs.
2727

2828
```blocks
2929
basic.forever(function () {
30-
power.lowPowerEnable(PowerDown.prevent)
30+
power.lowPowerEnable(LowPowerEnable.Prevent)
3131
led.plot(2, 2)
3232
basic.pause(1000)
3333
led.unplot(2, 2)
3434
led.plot(2, 1)
3535
basic.pause(1000)
3636
led.unplot(2, 1)
37-
power.lowPowerEnable(PowerDown.allow)
37+
power.lowPowerEnable(LowPowerEnable.Allow)
3838
power.lowPowerRequest()
3939
})
4040
```

0 commit comments

Comments
 (0)