From dd316e2d53762fcc86c24aee69cb3342d0854ae1 Mon Sep 17 00:00:00 2001 From: tyeth Date: Thu, 7 Mar 2024 15:34:40 +0000 Subject: [PATCH 1/2] Add ItsyBitsy ESP32 --- boards/itsybitsy-esp32/definition.json | 297 ++ boards/itsybitsy-esp32/image.svg | 3704 ++++++++++++++++++++++++ boards/itsybitsy-esp32/magic.json | 41 + 3 files changed, 4042 insertions(+) create mode 100644 boards/itsybitsy-esp32/definition.json create mode 100644 boards/itsybitsy-esp32/image.svg create mode 100644 boards/itsybitsy-esp32/magic.json diff --git a/boards/itsybitsy-esp32/definition.json b/boards/itsybitsy-esp32/definition.json new file mode 100644 index 0000000..18808e7 --- /dev/null +++ b/boards/itsybitsy-esp32/definition.json @@ -0,0 +1,297 @@ +{ + "boardName": "itsybitsy-esp32", + "mcuName": "ESP32", + "mcuRefVoltage": 3.3, + "displayName": "Adafruit ItsyBitsy ESP32", + "vendor": "Adafruit", + "productURL": "https://www.adafruit.com/product/5890", + "documentationURL": "https://learn.adafruit.com/adafruit-itsybitsy-esp32", + "installMethod": "web", + "esptool": { + "fileSystemSize": 1572864, + "blockSize": 4096, + "offset": "0x670000", + "chip": "esp32", + "flashMode": "dio", + "flashFreq": "80m", + "flashSize": "8MB", + "structure": { + "0x0": "wippersnapper.itsybitsy_esp32.littlefs.VERSION.combined.bin" + } + }, + "components": { + "digitalPins": [ + { + "name": "D0", + "displayName": "D0 (NeoPixel)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D35", + "displayName": "D35 (User BUTTON)", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "D13", + "displayName": "D13 (LED BUILT-IN)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D12", + "displayName": "D12", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D14", + "displayName": "D14", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D33", + "displayName": "D33", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D32", + "displayName": "D32", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D7", + "displayName": "D7", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D5", + "displayName": "D5 (!Vhi)", + "dataType": "bool", + "direction": "OUTPUT", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D27", + "displayName": "SCL", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D15", + "displayName": "SDA (I2C Data, Touch)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D8", + "displayName": "RX (UART Receive)", + "dataType": "bool", + "uartRx": true, + "hasPWM": true, + "hasServo": true + }, + { + "name": "D20", + "displayName": "TX (UART Transmit)", + "dataType": "bool", + "uartTx": true, + "hasPWM": true, + "hasServo": true + }, + { + "name": "D25", + "displayName": "A0", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D26", + "displayName": "A1", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D4", + "displayName": "A2", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D38", + "displayName": "A3", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "D37", + "displayName": "A4", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "D36", + "displayName": "A5", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "D19", + "displayName": "SCK", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D21", + "displayName": "MOSI / PICO", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D22", + "displayName": "MISO / POCI", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + } + ], + "analogPins": [ + { + "name": "A0", + "displayName": "D0 (NeoPixel)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A35", + "displayName": "D35 (User BUTTON)", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "A13", + "displayName": "D13 (LED BUILT-IN)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A12", + "displayName": "D12", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A14", + "displayName": "D14", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A33", + "displayName": "D33", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A32", + "displayName": "D32", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A27", + "displayName": "SCL", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A15", + "displayName": "SDA (I2C Data, Touch)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A8", + "displayName": "RX (UART Receive)", + "dataType": "bool", + "uartRx": true, + "hasPWM": true, + "hasServo": true + }, + { + "name": "A25", + "displayName": "A0", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A26", + "displayName": "A1", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A4", + "displayName": "A2", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "A38", + "displayName": "A3", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "A37", + "displayName": "A4", + "dataType": "bool", + "direction": "INPUT" + }, + { + "name": "A36", + "displayName": "A5", + "dataType": "bool", + "direction": "INPUT" + } + ], + "i2cPorts": [ + { + "i2cPortId": 0, + "SDA": 15, + "SCL": 27 + } + ] + } +} \ No newline at end of file diff --git a/boards/itsybitsy-esp32/image.svg b/boards/itsybitsy-esp32/image.svg new file mode 100644 index 0000000..fcd2be3 --- /dev/null +++ b/boards/itsybitsy-esp32/image.svg @@ -0,0 +1,3704 @@ + + + + + + + + + + +]> + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/boards/itsybitsy-esp32/magic.json b/boards/itsybitsy-esp32/magic.json new file mode 100644 index 0000000..4afe8bd --- /dev/null +++ b/boards/itsybitsy-esp32/magic.json @@ -0,0 +1,41 @@ +{ + "exportVersion": "1.0.0", + "exportedBy": "Adafruit", + "exportedAt": "2024-03-04T12:44:00.000Z", + "exportedFromDevice": { + "board": "itsybitsy-esp32", + "firmwareVersion": "1.0.0-beta.76" + }, + "components": [ + { + "name": "Button (User/Boot)", + "pinName": "D35", + "type": "push_button", + "mode": "DIGITAL", + "direction": "INPUT", + "period": 0, + "isPin": true, + "pull": "UP" + }, + { + "name": "Dimmable LED", + "type": "dimmable_led", + "pwmSetting": "fixedFrequency", + "frequency": 5000, + "resolution": 12, + "pinName": "D13", + "isPWM": true, + "selected": false + }, + { + "name": "NeoPixel", + "pixelNumber": 1, + "pixelsOrder": "GRB", + "pixelBrightness": 255, + "pinName": "D0", + "type": "neopixel", + "pixelsType": "NEOPIXEL", + "isPixel": true + } + ] +} \ No newline at end of file From 4e116b69add7430278e705c33f6f2ce2aad8b9c5 Mon Sep 17 00:00:00 2001 From: tyeth Date: Thu, 7 Mar 2024 15:55:55 +0000 Subject: [PATCH 2/2] Tweak ItsyBitsy ESP32 Uart pin defs --- boards/itsybitsy-esp32/definition.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/boards/itsybitsy-esp32/definition.json b/boards/itsybitsy-esp32/definition.json index 18808e7..60e5516 100644 --- a/boards/itsybitsy-esp32/definition.json +++ b/boards/itsybitsy-esp32/definition.json @@ -102,17 +102,17 @@ "name": "D8", "displayName": "RX (UART Receive)", "dataType": "bool", - "uartRx": true, "hasPWM": true, - "hasServo": true + "hasServo": true, + "uartRx": true }, { "name": "D20", "displayName": "TX (UART Transmit)", "dataType": "bool", - "uartTx": true, "hasPWM": true, - "hasServo": true + "hasServo": true, + "uartTx": true }, { "name": "D25", @@ -242,7 +242,6 @@ "name": "A8", "displayName": "RX (UART Receive)", "dataType": "bool", - "uartRx": true, "hasPWM": true, "hasServo": true },