Skip to content

Commit 2a766c8

Browse files
authored
Merge pull request #8800 from CytronTechnologies/add-edu-pico
Add new board: Cytron EDU PICO
2 parents b49f5b3 + d281b64 commit 2a766c8

13 files changed

+183
-0
lines changed

.gitmodules

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,3 +357,21 @@
357357
[submodule "frozen/CircuitPython_AXP313A"]
358358
path = frozen/CircuitPython_AXP313A
359359
url = https://github.com/bill88t/CircuitPython_AXP313A
360+
[submodule "frozen/Adafruit_CircuitPython_framebuf"]
361+
path = frozen/Adafruit_CircuitPython_framebuf
362+
url = https://github.com/adafruit/Adafruit_CircuitPython_framebuf
363+
[submodule "frozen/Adafruit_CircuitPython_SSD1306"]
364+
path = frozen/Adafruit_CircuitPython_SSD1306
365+
url = https://github.com/adafruit/Adafruit_CircuitPython_SSD1306
366+
[submodule "frozen/Adafruit_CircuitPython_DisplayIO_SSD1306"]
367+
path = frozen/Adafruit_CircuitPython_DisplayIO_SSD1306
368+
url = https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1306
369+
[submodule "frozen/Adafruit_CircuitPython_ImageLoad"]
370+
path = frozen/Adafruit_CircuitPython_ImageLoad
371+
url = https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad
372+
[submodule "frozen/Adafruit_CircuitPython_AHTx0"]
373+
path = frozen/Adafruit_CircuitPython_AHTx0
374+
url = https://github.com/adafruit/Adafruit_CircuitPython_AHTx0
375+
[submodule "frozen/Adafruit_CircuitPython_HTTPServer"]
376+
path = frozen/Adafruit_CircuitPython_HTTPServer
377+
url = https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* This file is part of the MicroPython project, http://micropython.org/
3+
*
4+
* The MIT License (MIT)
5+
*
6+
* Copyright (c) 2021 Scott Shawcroft for Adafruit Industries
7+
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
* THE SOFTWARE.
25+
*/
26+
27+
#include "supervisor/board.h"
28+
29+
// Use the MP_WEAK supervisor/shared/board.c versions of routines not defined here.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
firmware_size = 1532k;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#define MICROPY_HW_BOARD_NAME "Cytron EDU PICO W"
2+
#define MICROPY_HW_MCU_NAME "rp2040"
3+
4+
#define CIRCUITPY_DIGITALIO_HAVE_INVALID_PULL (1)
5+
#define CIRCUITPY_DIGITALIO_HAVE_INVALID_DRIVE_MODE (1)
6+
7+
#define MICROPY_HW_LED_STATUS (&pin_CYW0)
8+
9+
#define CIRCUITPY_BOARD_I2C (1)
10+
#define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO5, .sda = &pin_GPIO4}}
11+
12+
#define CIRCUITPY_BOARD_SPI (1)
13+
#define CIRCUITPY_BOARD_SPI_PIN {{.clock = &pin_GPIO18, .mosi = &pin_GPIO19, .miso = &pin_GPIO16}}

0 commit comments

Comments
 (0)