Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
678cd2c4
Unverified
Commit
678cd2c4
authored
Aug 04, 2023
by
Kattni
Committed by
GitHub
Aug 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Adafruit Metro RP2040 (#1630)
parent
1231317c
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
408 additions
and
0 deletions
+408
-0
README.md
README.md
+1
-0
boards.txt
boards.txt
+306
-0
package/package_pico_index.template.json
package/package_pico_index.template.json
+3
-0
tools/json/adafruit_metro.json
tools/json/adafruit_metro.json
+56
-0
tools/makeboards.py
tools/makeboards.py
+1
-0
variants/adafruit_metro/pins_arduino.h
variants/adafruit_metro/pins_arduino.h
+41
-0
No files found.
README.md
View file @
678cd2c4
...
...
@@ -21,6 +21,7 @@ Read the [Contributing Guide](https://github.com/earlephilhower/arduino-pico/blo
*
Adafruit ItsyBitsy RP2040
*
Adafruit KB2040
*
Adafruit Macropad RP2040
*
Adafruit Metro RP2040
*
Adafruit QTPy RP2040
*
Adafruit STEMMA Friend RP2040
*
Adafruit Trinkey RP2040 QT
...
...
boards.txt
View file @
678cd2c4
This diff is collapsed.
Click to expand it.
package/package_pico_index.template.json
View file @
678cd2c4
...
...
@@ -53,6 +53,9 @@
{
"name"
:
"Adafruit ItsyBitsy RP2040"
},
{
"name"
:
"Adafruit Metro RP2040"
},
{
"name"
:
"Adafruit QT Py RP2040"
},
...
...
tools/json/adafruit_metro.json
0 → 100644
View file @
678cd2c4
{
"build"
:
{
"arduino"
:
{
"earlephilhower"
:
{
"boot2_source"
:
"boot2_w25q080_2_padded_checksum.S"
,
"usb_vid"
:
"0x239A"
,
"usb_pid"
:
"0x813D"
}
},
"core"
:
"earlephilhower"
,
"cpu"
:
"cortex-m0plus"
,
"extra_flags"
:
"-D ARDUINO_ADAFRUIT_METRO_RP2040 -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250"
,
"f_cpu"
:
"133000000L"
,
"hwids"
:
[
[
"0x2E8A"
,
"0x00C0"
],
[
"0x239A"
,
"0x813D"
]
],
"mcu"
:
"rp2040"
,
"variant"
:
"adafruit_metro"
},
"debug"
:
{
"jlink_device"
:
"RP2040_M0_0"
,
"openocd_target"
:
"rp2040.cfg"
,
"svd_path"
:
"rp2040.svd"
},
"frameworks"
:
[
"arduino"
],
"name"
:
"Metro RP2040"
,
"upload"
:
{
"maximum_ram_size"
:
270336
,
"maximum_size"
:
16777216
,
"require_upload_port"
:
true
,
"native_usb"
:
true
,
"use_1200bps_touch"
:
true
,
"wait_for_upload_port"
:
false
,
"protocol"
:
"picotool"
,
"protocols"
:
[
"blackmagic"
,
"cmsis-dap"
,
"jlink"
,
"raspberrypi-swd"
,
"picotool"
,
"picoprobe"
,
"pico-debug"
]
},
"url"
:
"https://www.raspberrypi.org/products/raspberry-pi-pico/"
,
"vendor"
:
"Adafruit"
}
tools/makeboards.py
View file @
678cd2c4
...
...
@@ -348,6 +348,7 @@ MakeBoard("adafruit_feather_usb_host", "Adafruit", "Feather RP2040 USB Host", "0
MakeBoard
(
"adafruit_feather_can"
,
"Adafruit"
,
"Feather RP2040 CAN"
,
"0x239a"
,
"0x812f"
,
250
,
"ADAFRUIT_FEATHER_RP2040_CAN"
,
8
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"adafruit_feather_prop_maker"
,
"Adafruit"
,
"Feather RP2040 Prop-Maker"
,
"0x239a"
,
"0x8131"
,
250
,
"ADAFRUIT_FEATHER_RP2040_PROP_MAKER"
,
8
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"adafruit_itsybitsy"
,
"Adafruit"
,
"ItsyBitsy RP2040"
,
"0x239a"
,
"0x80fd"
,
250
,
"ADAFRUIT_ITSYBITSY_RP2040"
,
8
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"adafruit_metro"
,
"Adafruit"
,
"Metro RP2040"
,
"0x239a"
,
"0x813d"
,
250
,
"ADAFRUIT_METRO_RP2040"
,
16
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"adafruit_qtpy"
,
"Adafruit"
,
"QT Py RP2040"
,
"0x239a"
,
"0x80f7"
,
250
,
"ADAFRUIT_QTPY_RP2040"
,
8
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"adafruit_stemmafriend"
,
"Adafruit"
,
"STEMMA Friend RP2040"
,
"0x239a"
,
"0x80e3"
,
250
,
"ADAFRUIT_STEMMAFRIEND_RP2040"
,
8
,
"boot2_w25q080_2_padded_checksum"
)
MakeBoard
(
"adafruit_trinkeyrp2040qt"
,
"Adafruit"
,
"Trinkey RP2040 QT"
,
"0x239a"
,
"0x8109"
,
250
,
"ADAFRUIT_TRINKEYQT_RP2040"
,
8
,
"boot2_w25q080_2_padded_checksum"
)
...
...
variants/adafruit_metro/pins_arduino.h
0 → 100644
View file @
678cd2c4
#pragma once
// LEDs
#define PIN_LED (13u)
// NeoPixel
#define PIN_NEOPIXEL (14u)
// Serial
#define PIN_SERIAL1_TX (0u)
#define PIN_SERIAL1_RX (1u)
// Not pinned out
#define PIN_SERIAL2_TX (31u)
#define PIN_SERIAL2_RX (31u)
// SPI
#define PIN_SPI0_MISO (20u)
#define PIN_SPI0_MOSI (19u)
#define PIN_SPI0_SCK (18u)
#define PIN_SPI0_SS (23u)
// Not pinned out
#define PIN_SPI1_MISO (31u)
#define PIN_SPI1_MOSI (31u)
#define PIN_SPI1_SCK (31u)
#define PIN_SPI1_SS (31u)
// Wire
#define __WIRE0_DEVICE i2c0
#define PIN_WIRE0_SDA (16u)
#define PIN_WIRE0_SCL (17u)
#define __WIRE1_DEVICE i2c1
#define PIN_WIRE1_SDA (2u)
#define PIN_WIRE1_SCL (3u)
#define SERIAL_HOWMANY (2u)
#define SPI_HOWMANY (1u)
#define WIRE_HOWMANY (1u)
#include "../generic/common.h"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment