Skip to content

Commit f72c147

Browse files
authored
Merge branch 'main' into connect
2 parents d74097c + e3275be commit f72c147

File tree

128 files changed

+6582
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+6582
-302
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ jobs:
177177
- "8086_commander"
178178
- "ADM_B_NRF52840_1"
179179
- "TG-Watch"
180+
- "adafruit_feather_rp2040"
180181
- "aloriumtech_evo_m51"
181182
- "aramcon_badge_2019"
182183
- "arduino_mkr1300"
@@ -294,6 +295,7 @@ jobs:
294295
- "pyruler"
295296
- "qtpy_m0"
296297
- "qtpy_m0_haxpress"
298+
- "raspberry_pi_pico"
297299
- "raytac_mdbt50q-db-40"
298300
- "robohatmm1_m4"
299301
- "sam32"
@@ -315,6 +317,7 @@ jobs:
315317
- "spresense"
316318
- "stackrduino_m0_pro"
317319
- "stm32f411ce_blackpill"
320+
- "stm32f411ce_blackpill_with_flash"
318321
- "stm32f411ve_discovery"
319322
- "stm32f412zg_discovery"
320323
- "stm32f4_discovery"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,6 @@
171171
[submodule "frozen/Adafruit_CircuitPython_LC709203F"]
172172
path = frozen/Adafruit_CircuitPython_LC709203F
173173
url = https://github.com/adafruit/Adafruit_CircuitPython_LC709203F
174+
[submodule "ports/raspberrypi/sdk"]
175+
path = ports/raspberrypi/sdk
176+
url = https://github.com/raspberrypi/pico-sdk.git

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ stubs:
255255
@$(PYTHON) tools/extract_pyi.py shared-bindings/ $(STUBDIR)
256256
@$(PYTHON) tools/extract_pyi.py extmod/ulab/code/ $(STUBDIR)/ulab
257257
@$(PYTHON) tools/extract_pyi.py ports/atmel-samd/bindings $(STUBDIR)
258+
@$(PYTHON) tools/extract_pyi.py ports/raspberrypi/bindings $(STUBDIR)
258259
@$(PYTHON) setup.py -q sdist
259260

260261
.PHONY: check-stubs

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
"ports/nrf/nrfx",
190190
"ports/nrf/peripherals",
191191
"ports/nrf/usb",
192+
"ports/raspberrypi/sdk",
192193
"ports/stm/st_driver",
193194
"ports/stm/packages",
194195
"ports/stm/peripherals",

docs/supported_ports.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ is limited.
1313

1414
../ports/atmel-samd/README
1515
../ports/cxd56/README
16+
../ports/esp32s2/README
1617
../ports/litex/README
1718
../ports/mimxrt10xx/README
1819
../ports/nrf/README
20+
../ports/raspberrypi/README
1921
../ports/stm/README
20-
../ports/esp32s2/README

extmod/vfs.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ mp_vfs_mount_t *mp_vfs_lookup_path(const char *path, const char **path_out) {
7171
STATIC mp_vfs_mount_t *lookup_path(mp_obj_t path_in, mp_obj_t *path_out) {
7272
const char *path = mp_obj_str_get_str(path_in);
7373
const char *p_out;
74+
*path_out = mp_const_none;
7475
mp_vfs_mount_t *vfs = mp_vfs_lookup_path(path, &p_out);
7576
if (vfs != MP_VFS_NONE && vfs != MP_VFS_ROOT) {
7677
*path_out = mp_obj_new_str_of_type(mp_obj_get_type(path_in),
@@ -329,7 +330,7 @@ mp_obj_t mp_vfs_ilistdir(size_t n_args, const mp_obj_t *args) {
329330
path_in = MP_OBJ_NEW_QSTR(MP_QSTR_);
330331
}
331332

332-
mp_obj_t path_out;
333+
mp_obj_t path_out = mp_const_none;
333334
mp_vfs_mount_t *vfs = lookup_path(path_in, &path_out);
334335

335336
if (vfs == MP_VFS_ROOT) {
@@ -359,7 +360,7 @@ mp_obj_t mp_vfs_listdir(size_t n_args, const mp_obj_t *args) {
359360
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_vfs_listdir_obj, 0, 1, mp_vfs_listdir);
360361

361362
mp_obj_t mp_vfs_mkdir(mp_obj_t path_in) {
362-
mp_obj_t path_out;
363+
mp_obj_t path_out = mp_const_none;
363364
mp_vfs_mount_t *vfs = lookup_path(path_in, &path_out);
364365
if (vfs == MP_VFS_ROOT || (vfs != MP_VFS_NONE && !strcmp(mp_obj_str_get_str(path_out), "/"))) {
365366
mp_raise_OSError(MP_EEXIST);

locale/ID.po

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
77
"Report-Msgid-Bugs-To: \n"
88
"POT-Creation-Date: 2021-01-04 12:55-0600\n"
9-
"PO-Revision-Date: 2021-01-03 05:29+0000\n"
9+
"PO-Revision-Date: 2021-01-15 19:49+0000\n"
1010
"Last-Translator: oon arfiandwi <[email protected]>\n"
1111
"Language-Team: LANGUAGE <[email protected]>\n"
1212
"Language: ID\n"
1313
"MIME-Version: 1.0\n"
1414
"Content-Type: text/plain; charset=UTF-8\n"
1515
"Content-Transfer-Encoding: 8bit\n"
1616
"Plural-Forms: nplurals=1; plural=0;\n"
17-
"X-Generator: Weblate 4.4.1-dev\n"
17+
"X-Generator: Weblate 4.5-dev\n"
1818

1919
#: main.c
2020
msgid ""
@@ -2054,38 +2054,41 @@ msgid "Unhandled ESP TLS error %d %d %x %d"
20542054
msgstr ""
20552055

20562056
#: shared-bindings/wifi/Radio.c
2057-
msgid "Unknown failure"
2057+
#, c-format
2058+
msgid "Unknown failure %d"
20582059
msgstr ""
20592060

20602061
#: ports/nrf/common-hal/_bleio/__init__.c
20612062
#, c-format
20622063
msgid "Unknown gatt error: 0x%04x"
2063-
msgstr ""
2064+
msgstr "Kesalahan gatt tidak dikenal: 0x%04x"
20642065

20652066
#: supervisor/shared/safe_mode.c
20662067
msgid "Unknown reason."
2067-
msgstr ""
2068+
msgstr "Alasan yang tidak diketahui."
20682069

20692070
#: ports/nrf/common-hal/_bleio/__init__.c
20702071
#, c-format
20712072
msgid "Unknown security error: 0x%04x"
2072-
msgstr ""
2073+
msgstr "Kesalahan keamanan tidak dikenal: 0x%04x"
20732074

20742075
#: ports/nrf/common-hal/_bleio/__init__.c
20752076
#, c-format
20762077
msgid "Unknown soft device error: %04x"
2077-
msgstr ""
2078+
msgstr "Kesalahan perangkat lunak tidak dikenal: %04x"
20782079

20792080
#: shared-bindings/_pixelbuf/PixelBuf.c
20802081
#, c-format
20812082
msgid "Unmatched number of items on RHS (expected %d, got %d)."
2082-
msgstr ""
2083+
msgstr "Jumlah item pada RHS tidak cocok (diharapkan %d, didapatkan %d)."
20832084

20842085
#: ports/nrf/common-hal/_bleio/__init__.c
20852086
msgid ""
20862087
"Unspecified issue. Can be that the pairing prompt on the other device was "
20872088
"declined or ignored."
20882089
msgstr ""
2090+
"Masalah yang tidak ditentukan. Bisa jadi permintaan pemasangan pada "
2091+
"perangkat lain ditolak atau diabaikan."
20892092

20902093
#: ports/atmel-samd/common-hal/busio/I2C.c ports/cxd56/common-hal/busio/I2C.c
20912094
#: ports/esp32s2/common-hal/busio/UART.c ports/stm/common-hal/busio/I2C.c
@@ -2099,15 +2102,15 @@ msgstr "Baudrate tidak didukung"
20992102

21002103
#: shared-module/audiocore/WaveFile.c
21012104
msgid "Unsupported format"
2102-
msgstr ""
2105+
msgstr "Format tidak didukung"
21032106

21042107
#: py/moduerrno.c
21052108
msgid "Unsupported operation"
2106-
msgstr ""
2109+
msgstr "Operasi yang tidak didukung"
21072110

21082111
#: shared-bindings/digitalio/DigitalInOut.c
21092112
msgid "Unsupported pull value."
2110-
msgstr ""
2113+
msgstr "Nilai tarikan yang tidak didukung."
21112114

21122115
#: ports/esp32s2/common-hal/dualbank/__init__.c
21132116
msgid "Update Failed"
@@ -2116,24 +2119,24 @@ msgstr ""
21162119
#: ports/nrf/common-hal/_bleio/Characteristic.c
21172120
#: ports/nrf/common-hal/_bleio/Descriptor.c
21182121
msgid "Value length != required fixed length"
2119-
msgstr ""
2122+
msgstr "Panjang nilai != Panjang tetap yang dibutuhkan"
21202123

21212124
#: ports/nrf/common-hal/_bleio/Characteristic.c
21222125
#: ports/nrf/common-hal/_bleio/Descriptor.c
21232126
msgid "Value length > max_length"
2124-
msgstr ""
2127+
msgstr "Panjang nilai > max_length"
21252128

21262129
#: ports/esp32s2/bindings/espidf/__init__.c ports/esp32s2/esp_error.c
21272130
msgid "Version was invalid"
21282131
msgstr ""
21292132

21302133
#: py/emitnative.c
21312134
msgid "Viper functions don't currently support more than 4 arguments"
2132-
msgstr ""
2135+
msgstr "Fungsi Viper saat ini tidak mendukung lebih dari 4 argumen"
21332136

21342137
#: ports/stm/common-hal/microcontroller/Processor.c
21352138
msgid "Voltage read timed out"
2136-
msgstr ""
2139+
msgstr "Tegangan baca habis waktu"
21372140

21382141
#: main.c
21392142
msgid "WARNING: Your code filename has two extensions\n"
@@ -2185,27 +2188,27 @@ msgstr ""
21852188

21862189
#: ports/nrf/common-hal/_bleio/PacketBuffer.c
21872190
msgid "Writes not supported on Characteristic"
2188-
msgstr ""
2191+
msgstr "Menulis tidak didukung pada Karakteristik"
21892192

21902193
#: supervisor/shared/safe_mode.c
21912194
msgid "You are in safe mode: something unanticipated happened.\n"
2192-
msgstr ""
2195+
msgstr "Anda berada dalam mode aman: sesuatu yang tidak terduga terjadi.\n"
21932196

21942197
#: supervisor/shared/safe_mode.c
21952198
msgid "You requested starting safe mode by "
21962199
msgstr "Anda mengajukan untuk memulai mode aman pada (safe mode) pada "
21972200

21982201
#: py/objtype.c
21992202
msgid "__init__() should return None"
2200-
msgstr ""
2203+
msgstr "__init __() harus mengembalikan None"
22012204

22022205
#: py/objtype.c
22032206
msgid "__init__() should return None, not '%q'"
22042207
msgstr ""
22052208

22062209
#: py/objobject.c
22072210
msgid "__new__ arg must be a user-type"
2208-
msgstr ""
2211+
msgstr "__new__ arg harus berupa user-type"
22092212

22102213
#: extmod/modubinascii.c extmod/moduhashlib.c py/objarray.c
22112214
msgid "a bytes-like object is required"
@@ -2222,27 +2225,27 @@ msgstr "alamat %08x tidak selaras dengan %d bytes"
22222225

22232226
#: shared-bindings/i2cperipheral/I2CPeripheral.c
22242227
msgid "address out of bounds"
2225-
msgstr ""
2228+
msgstr "alamat di luar batas"
22262229

22272230
#: shared-bindings/i2cperipheral/I2CPeripheral.c
22282231
msgid "addresses is empty"
2229-
msgstr ""
2232+
msgstr "alamatnya kosong"
22302233

22312234
#: py/modbuiltins.c
22322235
msgid "arg is an empty sequence"
2233-
msgstr ""
2236+
msgstr "arg berisi urutan kosong"
22342237

22352238
#: extmod/ulab/code/numerical/numerical.c
22362239
msgid "argsort argument must be an ndarray"
2237-
msgstr ""
2240+
msgstr "Argumen argsort harus berupa ndarray"
22382241

22392242
#: extmod/ulab/code/numerical/numerical.c
22402243
msgid "argsort is not implemented for flattened arrays"
22412244
msgstr ""
22422245

22432246
#: py/runtime.c
22442247
msgid "argument has wrong type"
2245-
msgstr ""
2248+
msgstr "argumen memiliki tipe yang salah"
22462249

22472250
#: extmod/ulab/code/linalg/linalg.c
22482251
msgid "argument must be ndarray"
@@ -2255,11 +2258,11 @@ msgstr "argumen num/types tidak cocok"
22552258

22562259
#: py/runtime.c
22572260
msgid "argument should be a '%q' not a '%q'"
2258-
msgstr ""
2261+
msgstr "argumen harus berupa '%q' bukan '%q'"
22592262

22602263
#: extmod/ulab/code/linalg/linalg.c extmod/ulab/code/numerical/numerical.c
22612264
msgid "arguments must be ndarrays"
2262-
msgstr ""
2265+
msgstr "argumen harus berupa ndarrays"
22632266

22642267
#: extmod/ulab/code/ndarray.c
22652268
msgid "array and index length must be equal"
@@ -2268,19 +2271,19 @@ msgstr ""
22682271
#: py/objarray.c shared-bindings/alarm/SleepMemory.c
22692272
#: shared-bindings/nvm/ByteArray.c
22702273
msgid "array/bytes required on right side"
2271-
msgstr ""
2274+
msgstr "diperlukan array/byte di sisi kanan"
22722275

22732276
#: extmod/ulab/code/numerical/numerical.c
22742277
msgid "attempt to get (arg)min/(arg)max of empty sequence"
22752278
msgstr ""
22762279

22772280
#: extmod/ulab/code/numerical/numerical.c
22782281
msgid "attempt to get argmin/argmax of an empty sequence"
2279-
msgstr ""
2282+
msgstr "berusaha mendapatkan argmin/argmax dari urutan kosong"
22802283

22812284
#: py/objstr.c
22822285
msgid "attributes not supported yet"
2283-
msgstr ""
2286+
msgstr "atribut belum didukung"
22842287

22852288
#: extmod/ulab/code/numerical/numerical.c
22862289
msgid "axis is out of bounds"
@@ -2300,7 +2303,7 @@ msgstr "mode compile buruk"
23002303

23012304
#: py/objstr.c
23022305
msgid "bad conversion specifier"
2303-
msgstr ""
2306+
msgstr "specifier salah konversi"
23042307

23052308
#: py/objstr.c
23062309
msgid "bad format string"
@@ -2326,10 +2329,18 @@ msgstr ""
23262329
msgid "branch not in range"
23272330
msgstr ""
23282331

2332+
#: extmod/ulab/code/ulab_create.c
2333+
msgid "buffer is smaller than requested size"
2334+
msgstr ""
2335+
23292336
#: shared-bindings/audiocore/RawSample.c
23302337
msgid "buffer must be a bytes-like object"
23312338
msgstr ""
23322339

2340+
#: extmod/ulab/code/ulab_create.c
2341+
msgid "buffer size must be a multiple of element size"
2342+
msgstr ""
2343+
23332344
#: shared-module/struct/__init__.c
23342345
#, fuzzy
23352346
msgid "buffer size must match format"
@@ -3388,6 +3399,10 @@ msgstr ""
33883399
msgid "offset must be >= 0"
33893400
msgstr ""
33903401

3402+
#: extmod/ulab/code/ulab_create.c
3403+
msgid "offset must be non-negative and no greater than buffer length"
3404+
msgstr ""
3405+
33913406
#: py/objstr.c py/objstrunicode.c
33923407
#, fuzzy
33933408
msgid "offset out of bounds"

0 commit comments

Comments
 (0)