Skip to content

Commit 74ec900

Browse files
committed
Updated stubs to v1.19.1-915
1 parent f2aec4f commit 74ec900

File tree

5 files changed

+183
-13
lines changed

5 files changed

+183
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pico-W-Go provides code auto-completion and allows you to communicate with your Raspberry Pi Pico (W) board using the built-in REPL console. Run a single file on your board, sync your entire project or directly type and execute commands.
44

5-
> __Auto-completion based on Raspberry Pi Pico W MicroPython firmware: [rp2-pico-w-20230113-unstable-v1.19.1-796-gf4811b0b4.uf2](https://micropython.org/resources/firmware/rp2-pico-w-20230113-unstable-v1.19.1-796-gf4811b0b4.uf2)__
5+
> __Auto-completion based on Raspberry Pi Pico W MicroPython firmware: [rp2-pico-w-20230302-unstable-v1.19.1-915-g2bcd88d55.uf2](https://micropython.org/resources/firmware/rp2-pico-w-20230302-unstable-v1.19.1-915-g2bcd88d55.uf2)__
66
77
This software is originally based on [Pico-Go](https://github.com/cpwood/Pico-Go) by cpwood.
88

stubs/stdlib/usys.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ stdin : Any ## <class 'FileIO'> = <io.FileIO 0>
6868
"""Standard input ``stream``."""
6969
stdout : Any ## <class 'FileIO'> = <io.FileIO 1>
7070
"""Standard output ``stream``."""
71-
version = '3.4.0; MicroPython v1.19.1-796-gf4811b0b4 on 2023-01-13' # type: str
71+
version = '3.4.0; MicroPython v1.19.1-915-g2bcd88d55 on 2023-03-02' # type: str
7272
"""Python language version that this implementation conforms to, as a string."""
7373
version_info = () # type: tuple
7474
"""Python language version that this implementation conforms to, as a tuple of ints."""

stubs/stubs/network/network.pyi

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Module: 'network' on micropython-v1.19.1-rp2
33
"""
4-
# MCU: {'ver': 'v1.19.1', 'build': '', 'sysname': 'rp2', 'platform': 'rp2', 'version': '1.19.1', 'release': '1.19.1', 'port': 'rp2', 'family': 'micropython', 'name': 'micropython', 'machine': 'Raspberry Pi Pico W with RP2040', 'nodename': 'rp2'}
54

65
AP_IF: int = 1 # type: int
76
STAT_CONNECTING: int = 1 # type: int
@@ -163,5 +162,36 @@ parameter to retrieve. Supported parameters in WiFI STA mode are: ``'rssi'``.
163162
"""
164163
...
165164

166-
def route(*args, **kwargs) -> ...:
165+
def country(code: str = "") -> str:
166+
"""
167+
Get or set the two-letter ISO 3166-1 Alpha-2 country code to be used for radio compliance.
168+
169+
If the code parameter is provided, the country will be set to this value. If the function is called without parameters, it returns the current country.
170+
171+
The default code `XX` represents the “worldwide” region.
172+
"""
173+
...
174+
175+
def hostname(name: str = "") -> str:
176+
"""
177+
Get or set the hostname that will identify this
178+
device on the network. It is applied to all
179+
interfaces.
180+
181+
This hostname is used for:
182+
- Sending to the DHCP server in the client
183+
request. (If using DHCP)
184+
185+
- Broadcasting via mDNS. (If enabled)
186+
187+
If the name parameter is provided, the hostname
188+
will be set to this value. If the function is
189+
called without parameters, it returns the
190+
current hostname.
191+
192+
The default hostname is typically the name of the board.
193+
"""
194+
...
195+
196+
def route() -> list:
167197
...

stubs/stubs/umachine/umachine.pyi

Lines changed: 148 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,154 @@ class Pin:
7272
digital logic level. For analog control of a pin, see the ADC class.
7373
"""
7474

75-
ALT = 3
76-
IN = 0
77-
IRQ_FALLING = 4
78-
IRQ_RISING = 8
79-
OPEN_DRAIN = 2
80-
OUT = 1
81-
PULL_DOWN = 2
82-
PULL_UP = 1
75+
ALT = 3 # type: int
76+
ALT_GPCK = 8 # type: int
77+
ALT_I2C = 3 # type: int
78+
ALT_PIO0 = 6 # type: int
79+
ALT_PIO1 = 7 # type: int
80+
ALT_PWM = 4 # type: int
81+
ALT_SIO = 5 # type: int
82+
ALT_SPI = 1 # type: int
83+
ALT_UART = 2 # type: int
84+
ALT_USB = 9 # type: int
85+
IN = 0 # type: int
86+
IRQ_FALLING = 4 # type: int
87+
IRQ_RISING = 8 # type: int
88+
OPEN_DRAIN = 2 # type: int
89+
OUT = 1 # type: int
90+
PULL_DOWN = 2 # type: int
91+
PULL_UP = 1 # type: int
92+
93+
class board():
94+
GP0 : Pin
95+
""" <class 'Pin'> = Pin(GPIO0, mode=ALT, pull=PULL_DOWN, alt=31) """
96+
GP1 : Pin
97+
""" <class 'Pin'> = Pin(GPIO1, mode=ALT, pull=PULL_DOWN, alt=31) """
98+
GP10 : Pin
99+
""" <class 'Pin'> = Pin(GPIO10, mode=ALT, pull=PULL_DOWN, alt=31) """
100+
GP11 : Pin
101+
""" <class 'Pin'> = Pin(GPIO11, mode=ALT, pull=PULL_DOWN, alt=31) """
102+
GP12 : Pin
103+
""" <class 'Pin'> = Pin(GPIO12, mode=ALT, pull=PULL_DOWN, alt=31) """
104+
GP13 : Pin
105+
""" <class 'Pin'> = Pin(GPIO13, mode=ALT, pull=PULL_DOWN, alt=31) """
106+
GP14 : Pin
107+
""" <class 'Pin'> = Pin(GPIO14, mode=ALT, pull=PULL_DOWN, alt=31) """
108+
GP15 : Pin
109+
""" <class 'Pin'> = Pin(GPIO15, mode=ALT, pull=PULL_DOWN, alt=31) """
110+
GP16 : Pin
111+
""" <class 'Pin'> = Pin(GPIO16, mode=ALT, pull=PULL_DOWN, alt=31) """
112+
GP17 : Pin
113+
""" <class 'Pin'> = Pin(GPIO17, mode=ALT, pull=PULL_DOWN, alt=31) """
114+
GP18 : Pin
115+
""" <class 'Pin'> = Pin(GPIO18, mode=ALT, pull=PULL_DOWN, alt=31) """
116+
GP19 : Pin
117+
""" <class 'Pin'> = Pin(GPIO19, mode=ALT, pull=PULL_DOWN, alt=31) """
118+
GP2 : Pin
119+
""" <class 'Pin'> = Pin(GPIO2, mode=ALT, pull=PULL_DOWN, alt=31) """
120+
GP20 : Pin
121+
""" <class 'Pin'> = Pin(GPIO20, mode=ALT, pull=PULL_DOWN, alt=31) """
122+
GP21 : Pin
123+
""" <class 'Pin'> = Pin(GPIO21, mode=ALT, pull=PULL_DOWN, alt=31) """
124+
GP22 : Pin
125+
""" <class 'Pin'> = Pin(GPIO22, mode=ALT, pull=PULL_DOWN, alt=31) """
126+
GP26 : Pin
127+
""" <class 'Pin'> = Pin(GPIO26, mode=ALT, pull=PULL_DOWN, alt=31) """
128+
GP27 : Pin
129+
""" <class 'Pin'> = Pin(GPIO27, mode=ALT, pull=PULL_DOWN, alt=31) """
130+
GP28 : Pin
131+
""" <class 'Pin'> = Pin(GPIO28, mode=ALT, pull=PULL_DOWN, alt=31) """
132+
GP3 : Pin
133+
""" <class 'Pin'> = Pin(GPIO3, mode=ALT, pull=PULL_DOWN, alt=31) """
134+
GP4 : Pin
135+
""" <class 'Pin'> = Pin(GPIO4, mode=ALT, pull=PULL_DOWN, alt=31) """
136+
GP5 : Pin
137+
""" <class 'Pin'> = Pin(GPIO5, mode=ALT, pull=PULL_DOWN, alt=31) """
138+
GP6 : Pin
139+
""" <class 'Pin'> = Pin(GPIO6, mode=ALT, pull=PULL_DOWN, alt=31) """
140+
GP7 : Pin
141+
""" <class 'Pin'> = Pin(GPIO7, mode=ALT, pull=PULL_DOWN, alt=31) """
142+
GP8 : Pin
143+
""" <class 'Pin'> = Pin(GPIO8, mode=ALT, pull=PULL_DOWN, alt=31) """
144+
GP9 : Pin
145+
""" <class 'Pin'> = Pin(GPIO9, mode=ALT, pull=PULL_DOWN, alt=31) """
146+
LED : Pin
147+
""" <class 'Pin'> = Pin(EXT_GPIO0, mode=IN) """
148+
WL_GPIO0 : Pin
149+
""" <class 'Pin'> = Pin(EXT_GPIO0, mode=IN) """
150+
WL_GPIO1 : Pin
151+
""" <class 'Pin'> = Pin(EXT_GPIO1, mode=IN) """
152+
WL_GPIO2 : Pin
153+
""" <class 'Pin'> = Pin(EXT_GPIO2, mode=IN) """
154+
155+
class cpu():
156+
157+
EXT_GPIO0 : Pin
158+
""" <class 'Pin'> = Pin(EXT_GPIO0, mode=IN) """
159+
EXT_GPIO1 : Pin
160+
""" <class 'Pin'> = Pin(EXT_GPIO1, mode=IN) """
161+
EXT_GPIO2 : Pin
162+
""" <class 'Pin'> = Pin(EXT_GPIO2, mode=IN) """
163+
GPIO0 : Pin
164+
""" <class 'Pin'> = Pin(GPIO0, mode=ALT, pull=PULL_DOWN, alt=31) """
165+
GPIO1 : Pin
166+
""" <class 'Pin'> = Pin(GPIO1, mode=ALT, pull=PULL_DOWN, alt=31) """
167+
GPIO10 : Pin
168+
""" <class 'Pin'> = Pin(GPIO10, mode=ALT, pull=PULL_DOWN, alt=31) """
169+
GPIO11 : Pin
170+
""" <class 'Pin'> = Pin(GPIO11, mode=ALT, pull=PULL_DOWN, alt=31) """
171+
GPIO12 : Pin
172+
""" <class 'Pin'> = Pin(GPIO12, mode=ALT, pull=PULL_DOWN, alt=31) """
173+
GPIO13 : Pin
174+
""" <class 'Pin'> = Pin(GPIO13, mode=ALT, pull=PULL_DOWN, alt=31) """
175+
GPIO14 : Pin
176+
""" <class 'Pin'> = Pin(GPIO14, mode=ALT, pull=PULL_DOWN, alt=31) """
177+
GPIO15 : Pin
178+
""" <class 'Pin'> = Pin(GPIO15, mode=ALT, pull=PULL_DOWN, alt=31) """
179+
GPIO16 : Pin
180+
""" <class 'Pin'> = Pin(GPIO16, mode=ALT, pull=PULL_DOWN, alt=31) """
181+
GPIO17 : Pin
182+
""" <class 'Pin'> = Pin(GPIO17, mode=ALT, pull=PULL_DOWN, alt=31) """
183+
GPIO18 : Pin
184+
""" <class 'Pin'> = Pin(GPIO18, mode=ALT, pull=PULL_DOWN, alt=31) """
185+
GPIO19 : Pin
186+
""" <class 'Pin'> = Pin(GPIO19, mode=ALT, pull=PULL_DOWN, alt=31) """
187+
GPIO2 : Pin
188+
""" <class 'Pin'> = Pin(GPIO2, mode=ALT, pull=PULL_DOWN, alt=31) """
189+
GPIO20 : Pin
190+
""" <class 'Pin'> = Pin(GPIO20, mode=ALT, pull=PULL_DOWN, alt=31) """
191+
GPIO21 : Pin
192+
""" <class 'Pin'> = Pin(GPIO21, mode=ALT, pull=PULL_DOWN, alt=31) """
193+
GPIO22 : Pin
194+
""" <class 'Pin'> = Pin(GPIO22, mode=ALT, pull=PULL_DOWN, alt=31) """
195+
GPIO23 : Pin
196+
""" <class 'Pin'> = Pin(GPIO23, mode=ALT, alt=31) """
197+
GPIO24 : Pin
198+
""" <class 'Pin'> = Pin(GPIO24, mode=ALT, alt=31) """
199+
GPIO25 : Pin
200+
""" <class 'Pin'> = Pin(GPIO25, mode=ALT, pull=PULL_DOWN, alt=31) """
201+
GPIO26 : Pin
202+
""" <class 'Pin'> = Pin(GPIO26, mode=ALT, pull=PULL_DOWN, alt=31) """
203+
GPIO27 : Pin
204+
""" <class 'Pin'> = Pin(GPIO27, mode=ALT, pull=PULL_DOWN, alt=31) """
205+
GPIO28 : Pin
206+
""" <class 'Pin'> = Pin(GPIO28, mode=ALT, pull=PULL_DOWN, alt=31) """
207+
GPIO29 : Pin
208+
""" <class 'Pin'> = Pin(GPIO29, mode=ALT, pull=PULL_DOWN, alt=31) """
209+
GPIO3 : Pin
210+
""" <class 'Pin'> = Pin(GPIO3, mode=ALT, pull=PULL_DOWN, alt=31) """
211+
GPIO4 : Pin
212+
""" <class 'Pin'> = Pin(GPIO4, mode=ALT, pull=PULL_DOWN, alt=31) """
213+
GPIO5 : Pin
214+
""" <class 'Pin'> = Pin(GPIO5, mode=ALT, pull=PULL_DOWN, alt=31) """
215+
GPIO6 : Pin
216+
""" <class 'Pin'> = Pin(GPIO6, mode=ALT, pull=PULL_DOWN, alt=31) """
217+
GPIO7 : Pin
218+
""" <class 'Pin'> = Pin(GPIO7, mode=ALT, pull=PULL_DOWN, alt=31) """
219+
GPIO8 : Pin
220+
""" <class 'Pin'> = Pin(GPIO8, mode=ALT, pull=PULL_DOWN, alt=31) """
221+
GPIO9 : Pin
222+
""" <class 'Pin'> = Pin(GPIO9, mode=ALT, pull=PULL_DOWN, alt=31) """
83223

84224
def __init__(self, id: int|str, /, mode: int = IN, pull: int = PULL_UP, af: str|int = -1):
85225
"""

stubs/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version": "1.19.1-796"}
1+
{"version": "1.19.1-915"}

0 commit comments

Comments
 (0)