Skip to content

Commit aba490c

Browse files
committed
Tweak to API documentation and "it may not work" section, pomodoro timer bugfix
1 parent f134b8c commit aba490c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

docs/microbit_micropython_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ The accelerometer is accessed via the ``accelerometer`` object::
223223
accelerometer.get_y()
224224
# read the Z axis of the device. Measured in milli-g.
225225
accelerometer.get_z()
226-
# get all three X, Y and Z readings (listed in that order).
226+
# get tuple of all three X, Y and Z readings (listed in that order).
227227
accelerometer.get_values()
228228
# return the name of the current gesture.
229229
accelerometer.current_gesture()

docs/tutorials/hello.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ change the scroll method's argument.
6464
in a way that MicroPython can't understand. Check you're not missing any
6565
special characters like ``"`` or ``:``. It's like putting. a full stop in
6666
the middle of a sentence. It's hard to understand exactly what you mean.
67+
68+
Your microbit may stop responding: you cannot flash new code to it or
69+
enter commands into the REPL. If this happens, try power cycling it. That
70+
is, unplug the USB cable (and battery cable if it's connected), then plug
71+
the cable back in again. You may also need to quit and re-start your code
72+
editor application.

examples/pomodoro.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def run_timer(seconds, LED_state):
4141
if time - timer >= interval:
4242
timer = time
4343
x, y = index_to_xy(intervals_remaining - 1)
44-
display.image.set_pixel(x, y, LED_state)
44+
display.set_pixel(x, y, LED_state)
4545
intervals_remaining -= 1
4646

4747

@@ -65,4 +65,3 @@ def run_timer(seconds, LED_state):
6565

6666
print("finished\n")
6767
print("Press the reset button to restart timer.")
68-

0 commit comments

Comments
 (0)