From 04fd86d3ab2d256d5f40683d3dbfc2f593f7389c Mon Sep 17 00:00:00 2001 From: qpucka Date: Sun, 6 Nov 2022 14:42:53 -0600 Subject: [PATCH] ports/rp2/boards/ADAFRUIT_KB2040: Add Adafruit KB2040 board. --- ports/rp2/boards/ADAFRUIT_KB2040/board.json | 23 +++++++++++++++++++ .../ADAFRUIT_KB2040/mpconfigboard.cmake | 2 ++ .../boards/ADAFRUIT_KB2040/mpconfigboard.h | 11 +++++++++ 3 files changed, 36 insertions(+) create mode 100644 ports/rp2/boards/ADAFRUIT_KB2040/board.json create mode 100644 ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.cmake create mode 100644 ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.h diff --git a/ports/rp2/boards/ADAFRUIT_KB2040/board.json b/ports/rp2/boards/ADAFRUIT_KB2040/board.json new file mode 100644 index 0000000000..83382ac6a9 --- /dev/null +++ b/ports/rp2/boards/ADAFRUIT_KB2040/board.json @@ -0,0 +1,23 @@ +{ + "deploy": [ + "../deploy.md" + ], + "docs": "", + "features": [ + "Breadboard Friendly", + "Castellated Pads", + "RGB LED", + "SPI Flash", + "STEMMA QT/QWIIC", + "USB-C", + "Pink" + ], + "images": [ + "5302-12.jpg" + ], + "mcu": "rp2040", + "product": "KB2040", + "thumbnail": "", + "url": "https://www.adafruit.com/product/5302", + "vendor": "Adafruit" +} diff --git a/ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.cmake b/ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.cmake new file mode 100644 index 0000000000..20cb888922 --- /dev/null +++ b/ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.cmake @@ -0,0 +1,2 @@ +# cmake file for Adafruit KB2040 + diff --git a/ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.h b/ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.h new file mode 100644 index 0000000000..9e7fc68c20 --- /dev/null +++ b/ports/rp2/boards/ADAFRUIT_KB2040/mpconfigboard.h @@ -0,0 +1,11 @@ +// https://www.adafruit.com/product/5302 +// https://learn.adafruit.com/adafruit-kb2040/pinouts + +#define MICROPY_HW_BOARD_NAME "Adafruit KB2040" +#define MICROPY_HW_FLASH_STORAGE_BYTES (7 * 1024 * 1024) + +#define MICROPY_HW_USB_VID (0x239A) +#define MICROPY_HW_USB_PID (0x8106) + +// Boot Button GPIO11 +// Neopixel data GPIO17