You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The program state is preserved and when it wakes up it will resume operation where it left off.
34
+
The program state is preserved and when it wakes up it will resume
35
+
operation where it left off.
35
36
36
37
Deep Sleep mode will consume more battery power than Off mode.
37
38
38
39
The wake up sources are configured via arguments.
39
40
40
-
If no wake up sources have been configured it will sleep until the reset button is pressed (which resets the Target MCU) or, in battery power, when the USB cable is inserted.
41
+
The board will always wake up when receiving UART data, when the reset
42
+
button is pressed (which resets the board) or, in battery power,
43
+
when the USB cable is inserted.
41
44
42
-
When the ``run_every`` parameter is set to ``True`` (the default), any function scheduled with ``microbit.run_every`` will still run while the board sleeps. When the scheduled time is reached the micro:bit will momentarily wake up to run the scheduled function and then automatically go back to sleep.
45
+
When the ``run_every`` parameter is set to ``True`` (the default), any
46
+
function scheduled with ``run_every`` will momentarily wake up the board
47
+
to run and when it finishes it will go back to sleep.
43
48
44
49
:param ms: A time in milliseconds to wait before it wakes up.
45
50
:param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``.
The program state is preserved and when it wakes up it will resume operation where it left off.
34
+
The program state is preserved and when it wakes up it will resume
35
+
operation where it left off.
35
36
36
37
Deep Sleep mode will consume more battery power than Off mode.
37
38
38
39
The wake up sources are configured via arguments.
39
40
40
-
If no wake up sources have been configured it will sleep until the reset button is pressed (which resets the Target MCU) or, in battery power, when the USB cable is inserted.
41
+
The board will always wake up when receiving UART data, when the reset
42
+
button is pressed (which resets the board) or, in battery power,
43
+
when the USB cable is inserted.
41
44
42
-
When the ``run_every`` parameter is set to ``True`` (the default), any function scheduled with ``microbit.run_every`` will still run while the board sleeps. When the scheduled time is reached the micro:bit will momentarily wake up to run the scheduled function and then automatically go back to sleep.
45
+
When the ``run_every`` parameter is set to ``True`` (the default), any
46
+
function scheduled with ``run_every`` will momentarily wake up the board
47
+
to run and when it finishes it will go back to sleep.
43
48
44
49
:param ms: A time in milliseconds to wait before it wakes up.
45
50
:param wake_on: A single instance or a tuple of pins and/or buttons to wake up the board, e.g. ``deep_sleep(wake_on=button_a)`` or ``deep_sleep(wake_on=(pin0, pin2, button_b))``.
Copy file name to clipboardExpand all lines: lang/ja/typeshed/stdlib/log.pyi
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,8 @@ present, it will generate a new header row with the additional columns.
27
27
By default the first column contains a timestamp for each row. The time
28
28
unit can be selected via the timestamp argument.
29
29
30
-
:param *labels: Any number of positional arguments, each corresponding to an entry in the log header.
31
-
:param timestamp: Select the timestamp unit that will be automatically added as the first column in every row. Timestamp values can be one of ``log.MILLISECONDS``, ``log.SECONDS``, ``log.MINUTES``, ``log.HOURS``, ``log.DAYS`` or ``None`` to disable the timestamp. The default value is ``log.SECONDS``."""
@@ -96,8 +96,8 @@ gestures can be detected using a loop with a small :func:`microbit.sleep` delay.
96
96
...
97
97
98
98
defset_range(value: int) ->None:
99
-
"""Set the accelerometer sensitivity range, in g (standard gravity), to the closest values supported by the hardware, so it rounds to either ``2``, ``4``, or ``8`` g.
99
+
"""加速度センサーの感度範囲を g (標準重力)で設定します。設定値は、ハードウェアがサポートする最も近い値、すなわち ``2``、``4``、``8`` g のいずれかに丸められます。
100
100
101
101
Example: ``accelerometer.set_range(8)``
102
102
103
-
:param value: New range for the accelerometer, an integer in ``g``."""
0 commit comments