Skip to content

Commit 14d6df1

Browse files
committed
Update docstubs stubs for preview
1 parent 7023688 commit 14d6df1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

stubs/micropython-v1_27_0_preview-docstubs/esp32/__init__.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,16 @@ def wake_on_ext1(pins: List[Pin] | Tuple[Pin, ...] | None, level: int, /) -> Non
599599
``Note:`` This is only available for boards that have ext1 support.
600600
"""
601601
...
602+
def wake_on_gpio(pins, level) -> None:
603+
"""
604+
Configure how GPIO wakes the device from sleep. *pins* can be ``None``
605+
or a tuple/list of valid Pin objects. *level* should be ``esp32.WAKEUP_ALL_LOW``
606+
or ``esp32.WAKEUP_ANY_HIGH``.
607+
608+
``Note:`` Some boards don't support waking on GPIO from deep sleep,
609+
on those boards, the pins set here can only be used to wake from light sleep.
610+
"""
611+
...
602612
def gpio_deep_sleep_hold(enable) -> None:
603613
"""
604614
Configure whether non-RTC GPIO pin configuration is retained during

stubs/micropython-v1_27_0_preview-docstubs/modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"firmware": "micropython-v1_27_0_preview",
99
"nodename": "micropython",
1010
"version": "v1.27.0-preview",
11-
"release": "v1.27.0-preview-386-g2762fe680",
11+
"release": "v1.27.0-preview-388-g27544a2d8",
1212
"sysname": "micropython"
1313
},
1414
"stubber": {

0 commit comments

Comments
 (0)