diff --git a/Boardfiles/raspberry_pi_pico2/boot.txt b/Boardfiles/raspberry_pi_pico2/boot.txt new file mode 100644 index 0000000..e0f85ad --- /dev/null +++ b/Boardfiles/raspberry_pi_pico2/boot.txt @@ -0,0 +1,5 @@ +00-gpio.py +01-early-connection.py +02-LEDs.py +03-reload-hostname.py +05-advance-time.lja diff --git a/Boardfiles/raspberry_pi_pico2/drivers.txt b/Boardfiles/raspberry_pi_pico2/drivers.txt new file mode 100644 index 0000000..fb1d899 --- /dev/null +++ b/Boardfiles/raspberry_pi_pico2/drivers.txt @@ -0,0 +1,2 @@ +led_generic +gpiochip diff --git a/Boardfiles/raspberry_pi_pico2/packages.txt b/Boardfiles/raspberry_pi_pico2/packages.txt new file mode 100644 index 0000000..d6e4985 --- /dev/null +++ b/Boardfiles/raspberry_pi_pico2/packages.txt @@ -0,0 +1,13 @@ +sysinfo +ducky +ed +hashutils +jpkg +less +nano +neofetch +lm_sensors +uartutils +i2ctools +i2stools +adctools diff --git a/Boardfiles/raspberry_pi_pico2/pinout.map b/Boardfiles/raspberry_pi_pico2/pinout.map new file mode 100644 index 0000000..bbcc56e --- /dev/null +++ b/Boardfiles/raspberry_pi_pico2/pinout.map @@ -0,0 +1,32 @@ + ,-------------. +[UART0 TX|I2C0 SDA|SPI0 RX ] GP0 (1) |1 0 == 0 o| (40) VBUS [ | | ] +[UART0 RX|I2C0 SCL|SPI0 CSn] GP1 (2) |o = usb o| (39) VSYS [ | | ] +[ | | ] GND (3) |o led o| (38) GND [ | | ] +[ |I2C1 SDA|SPI0 SCK] GP2 (4) |o o| (37) 3V3_EN [ | | ] +[ |I2C1 SCL|SPI0 TX ] GP3 (5) |o [] o| (36) 3V3(OUT) [ | | ] +[UART1 TX|I2C0 SDA|SPI0 RX ] GP4 (6) |o BOOTSEL o| (35) ADC_VREF [ | | ] +[UART1 RX|I2C0 SCL|SPI0 CSn] GP5 (7) |o o| (34) GP28 [ ADC2 | | ] +[ | | ] GND (8) |o o| (33) GND [ AGND | | ] +[ |I2C1 SDA|SPI0 SCK] GP6 (9) |o +---+ o| (32) GP27 [ ADC1 |I2C1 SCL| ] +[ |I2C1 SCL|SPI0 TX ] GP7 (10) |o |RP2| o| (31) GP26 [ ADC0 |I2C1 SDA| ] +[UART1 TX|I2C0 SDA|SPI1 RX ] GP8 (11) |o |350| o| (30) RUN [ | | ] +[UART1 RX|I2C0 SCL|SPI1 CSn] GP9 (12) |o +---+ o| (29) GP22 [ ] +[ | | ] GND (13) |o o| (28) GND [ | | ] +[ |I2C1 SDA|SPI1 SCK] GP10 (14) |o o| (27) GP21 [ |I2C0 SCL| ] +[ |I2C1 SCL|SPI1 TX ] GP11 (15) |o o| (26) GP20 [ |I2C0 SDA| ] +[UART0 TX|I2C0 SDA|SPI1 RX ] GP12 (16) |o o| (25) GP19 [SPI0 TX |I2C1 SCL| ] +[UART0 RX|I2C0 SCL|SPI1 CSn] GP13 (17) |o o| (24) GP18 [SPI0 SCK|I2C1 SDA| ] +[ | | ] GND (18) |o o| (23) GND [ | | ] +[ |I2C1 SDA|SPI1 SCK] GP14 (19) |o DEBUG o| (22) GP17 [SPI0 CSn|I2C0 SCL|UART0 RX] +[ |I2C1 SCL|SPI1 TX ] GP15 (20) |o 0 ooo 0 o| (21) GP16 [SPI0 RX |I2C0 SDA|UART0 TX] + `-------------' + ^^^ + SWCLK ||| SWDIO + GND | +Raspberry Pi Pico 2 + +SoC : RP2350 +RAM : 512KB +Storage : SQPI (4MB) +Wi-fi : False +Bluetooth : False diff --git a/Boardfiles/raspberry_pi_pico2/settings.toml b/Boardfiles/raspberry_pi_pico2/settings.toml new file mode 100644 index 0000000..af1eb5c --- /dev/null +++ b/Boardfiles/raspberry_pi_pico2/settings.toml @@ -0,0 +1,22 @@ +CIRCUITPY_PYSTACK_SIZE = 12288 + +[BERYLLIUM] +setup = true + +fs_label = "BERYLLIUM" + +serial_console_enabled = true +usb_msc_available = true +usb_hid_available = true +usb_midi_available = true +wifi_available = false +ble_available = false +blc_available = false +usb_msc_enabled = false +usb_hid_enabled = false +usb_midi_enabled = false + +ledtype = "generic" +led = "LED" + +DEBUG = false diff --git a/README.md b/README.md index 3055de3..f38963f 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Raspberry Pi:
- Pimoroni Pico Lipo (4mb)
- Raspberry Pi Pico
- Raspberry Pi Pico W
+ - Raspberry Pi Pico 2
- Waveshare RP2040-Zero
- Waveshare RP2040-Tiny
@@ -64,7 +65,7 @@ SAMD:

But it can probably run on many more.

-The currently stable supported MCUs are: ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6, RP2040, nRF52840, SAMD51.
+The currently stable supported MCUs are: ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6, RP2040, RP2350, nRF52840, SAMD51.
The currently unstable MCUs (experimental support) are: ESP32-C2.
The currently unsupported CircuitPython-compatible MCU families / CircuitPython platforms are: SAMD21, litex, mimxrt10xx, efr32, stm.
The MCU's that are currently unsupported are so because I either can't get my hands on a decent board with them or they don't have enough ram for it.
diff --git a/drivers/gpiochip.py b/drivers/gpiochip.py index 637bcdd..211e1c8 100644 --- a/drivers/gpiochip.py +++ b/drivers/gpiochip.py @@ -1,9 +1,24 @@ import board import digitalio -import analogio -import touchio -import pwmio -import busio + +try: + import analogio +except ImportError: + pass +try: + import touchio +except ImportError: + pass + +try: + import pwmio +except ImportError: + pass + +try: + import busio +except ImportError: + pass class gpiochip: