From 71722c84ca43c0f80db74d3f89e036982083a163 Mon Sep 17 00:00:00 2001 From: Mike Causer Date: Sat, 24 Jul 2021 02:15:58 +1000 Subject: [PATCH] rp2/boards: Add Pimoroni Tiny 2040. --- .../PIMORONI_TINY2040/mpconfigboard.cmake | 1 + .../boards/PIMORONI_TINY2040/mpconfigboard.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.cmake create mode 100644 ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.h diff --git a/ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.cmake b/ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.cmake new file mode 100644 index 0000000000..b6c4b3efc3 --- /dev/null +++ b/ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.cmake @@ -0,0 +1 @@ +# cmake file for Pimoroni Tiny 2040 diff --git a/ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.h b/ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.h new file mode 100644 index 0000000000..50cb2bd599 --- /dev/null +++ b/ports/rp2/boards/PIMORONI_TINY2040/mpconfigboard.h @@ -0,0 +1,17 @@ +// https://shop.pimoroni.com/products/tiny-2040 + +#define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2040" +#define MICROPY_HW_FLASH_STORAGE_BYTES (7 * 1024 * 1024) + +#define MICROPY_HW_USB_VID (0x16D0) +#define MICROPY_HW_USB_PID (0x08C7) + +#define MICROPY_HW_I2C0_SCL (4) +#define MICROPY_HW_I2C0_SDA (5) + +// RGB LED, active low +// Red LED 18 +// Green LED 19 +// Blue LED 20 + +// Boot button GPIO23