Skip to content

Commit 6043fdf

Browse files
authored
Merge pull request #39 from adafruit/main
Merge from adafruit main for RP2040
2 parents e424c84 + 2249a33 commit 6043fdf

File tree

143 files changed

+6406
-270
lines changed

Some content is hidden

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

143 files changed

+6406
-270
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ jobs:
176176
board:
177177
- "8086_commander"
178178
- "ADM_B_NRF52840_1"
179-
- "TG-Watch02A"
179+
- "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"
@@ -464,7 +467,7 @@ jobs:
464467
id: idf-cache
465468
with:
466469
path: ${{ github.workspace }}/.idf_tools
467-
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20200801
470+
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20210121
468471
- name: Clone IDF submodules
469472
run: |
470473
(cd $IDF_PATH && git submodule update --init)

.gitmodules

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,21 @@
156156
[submodule "ports/esp32s2/certificates/nina-fw"]
157157
path = ports/esp32s2/certificates/nina-fw
158158
url = https://github.com/adafruit/nina-fw.git
159+
[submodule "frozen/Adafruit_CircuitPython_ST7789"]
160+
path = frozen/Adafruit_CircuitPython_ST7789
161+
url = https://github.com/adafruit/Adafruit_CircuitPython_ST7789
162+
[submodule "frozen/Adafruit_CircuitPython_Display_Shapes"]
163+
path = frozen/Adafruit_CircuitPython_Display_Shapes
164+
url = https://github.com/adafruit/Adafruit_CircuitPython_Display_Shapes
165+
[submodule "frozen/Adafruit_CircuitPython_Display_Text"]
166+
path = frozen/Adafruit_CircuitPython_Display_Text
167+
url = https://github.com/adafruit/Adafruit_CircuitPython_Display_Text
168+
[submodule "frozen/Adafruit_CircuitPython_ProgressBar"]
169+
path = frozen/Adafruit_CircuitPython_ProgressBar
170+
url = https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar
171+
[submodule "frozen/Adafruit_CircuitPython_LC709203F"]
172+
path = frozen/Adafruit_CircuitPython_LC709203F
173+
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import subprocess
2424
import sys
2525
import urllib.parse
26+
import time
2627

2728
import recommonmark
2829
from sphinx.transforms import SphinxTransform
@@ -101,9 +102,12 @@
101102
# The master toctree document.
102103
#master_doc = 'index'
103104

105+
# Get current date (execution) for copyright year
106+
current_date = time.localtime()
107+
104108
# General information about the project.
105109
project = 'Adafruit CircuitPython'
106-
copyright = '2014-2020, MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)'
110+
copyright = f'2014-{current_date.tm_year}, MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)'
107111

108112
# These are overwritten on ReadTheDocs.
109113
# The version info for the project you're documenting, acts as replacement for
@@ -185,6 +189,7 @@
185189
"ports/nrf/nrfx",
186190
"ports/nrf/peripherals",
187191
"ports/nrf/usb",
192+
"ports/raspberrypi/sdk",
188193
"ports/stm/st_driver",
189194
"ports/stm/packages",
190195
"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);

0 commit comments

Comments
 (0)