diff --git a/boards/pyportal-tinyusb/definition.json b/boards/pyportal-tinyusb/definition.json index abcfca1..820ddac 100644 --- a/boards/pyportal-tinyusb/definition.json +++ b/boards/pyportal-tinyusb/definition.json @@ -24,8 +24,7 @@ { "name": "D13", "displayName": "D13 LED", - "dataType": "bool", - "hasPWM": true + "dataType": "bool" }, { "name": "D25", @@ -46,24 +45,24 @@ ], "analogPins": [ { - "name": "A0", + "name": "A14", "displayName": "A0 (Speaker)", "dataType": "int16", "hasPWM": true }, { - "name": "A1", - "displayName": "D3", + "name": "A15", + "displayName": "D3 (A1)", "dataType": "int16" }, { - "name": "A2", - "displayName": "Light Sensor", + "name": "A16", + "displayName": "Light Sensor (A2)", "dataType": "int16" }, { - "name": "A3", - "displayName": "D4", + "name": "A17", + "displayName": "D4 (A3)", "dataType": "int16" } ], diff --git a/boards/pyportal-tinyusb/magic.json b/boards/pyportal-tinyusb/magic.json index 7caf157..1b3d719 100644 --- a/boards/pyportal-tinyusb/magic.json +++ b/boards/pyportal-tinyusb/magic.json @@ -8,13 +8,12 @@ }, "components": [ { - "name": "Dimmable LED", - "type": "dimmable_led", - "pwmSetting": "fixedFrequency", - "frequency": 5000, - "resolution": 12, + "name": "Onboard Red LED", "pinName": "D13", - "isPWM": true + "type": "led", + "mode": "DIGITAL", + "direction": "OUTPUT", + "isPin": true }, { "name": "NeoPixel", @@ -53,7 +52,7 @@ }, { "name": "Light Sensor", - "pinName": "A2", + "pinName": "A16", "type": "light_sensor", "mode": "ANALOG", "direction": "INPUT", diff --git a/boards/pyportal-titano-tinyusb/definition.json b/boards/pyportal-titano-tinyusb/definition.json new file mode 100644 index 0000000..3e25552 --- /dev/null +++ b/boards/pyportal-titano-tinyusb/definition.json @@ -0,0 +1,77 @@ +{ + "boardName": "pyportal-titano-tinyusb", + "mcuName": "samd51j20", + "mcuRefVoltage": 3.3, + "displayName": "PyPortal Titano", + "vendor":"Adafruit", + "description": "320x480 IoT display.", + "productURL":"https://www.adafruit.com/product/4444", + "documentationURL":"https://learn.adafruit.com/adafruit-pyportal-titano", + "installMethod":"uf2", + "components": + { + "digitalPins": [ + { + "name": "D3", + "displayName": "D3", + "dataType": "bool" + }, + { + "name": "D4", + "displayName": "D4", + "dataType": "bool" + }, + { + "name": "D13", + "displayName": "D13 LED", + "dataType": "bool" + }, + { + "name": "D25", + "displayName": "TFT Backlight", + "dataType": "bool", + "hasPWM": true + }, + { + "name": "D50", + "displayName": "Speaker Enable", + "dataType": "bool" + }, + { + "name": "D2", + "displayName": "D2 (NeoPixel)", + "dataType": "bool" + } + ], + "analogPins": [ + { + "name": "A14", + "displayName": "A0 (Speaker)", + "dataType": "int16", + "hasPWM": true + }, + { + "name": "A15", + "displayName": "D3 (A1)", + "dataType": "int16" + }, + { + "name": "A16", + "displayName": "Light Sensor (A2)", + "dataType": "int16" + }, + { + "name": "A17", + "displayName": "D4 (A3)", + "dataType": "int16" + } + ], + "i2cPorts": [ + { + "i2cPortId": 0, + "SDA": 27, + "SCL": 28 + } + ] + } +} diff --git a/boards/pyportal-titano-tinyusb/image.png b/boards/pyportal-titano-tinyusb/image.png new file mode 100644 index 0000000..46e2a81 Binary files /dev/null and b/boards/pyportal-titano-tinyusb/image.png differ diff --git a/boards/pyportal-titano-tinyusb/images/boot-drive.png b/boards/pyportal-titano-tinyusb/images/boot-drive.png new file mode 100644 index 0000000..96dfb44 Binary files /dev/null and b/boards/pyportal-titano-tinyusb/images/boot-drive.png differ diff --git a/boards/pyportal-titano-tinyusb/images/drag-drop.png b/boards/pyportal-titano-tinyusb/images/drag-drop.png new file mode 100644 index 0000000..4131b80 Binary files /dev/null and b/boards/pyportal-titano-tinyusb/images/drag-drop.png differ diff --git a/boards/pyportal-titano-tinyusb/images/reset.png b/boards/pyportal-titano-tinyusb/images/reset.png new file mode 100644 index 0000000..6b1285c Binary files /dev/null and b/boards/pyportal-titano-tinyusb/images/reset.png differ diff --git a/boards/pyportal-titano-tinyusb/images/usb.png b/boards/pyportal-titano-tinyusb/images/usb.png new file mode 100644 index 0000000..79251ad Binary files /dev/null and b/boards/pyportal-titano-tinyusb/images/usb.png differ diff --git a/boards/pyportal-titano-tinyusb/magic.json b/boards/pyportal-titano-tinyusb/magic.json new file mode 100644 index 0000000..4d1cf96 --- /dev/null +++ b/boards/pyportal-titano-tinyusb/magic.json @@ -0,0 +1,48 @@ +{ + "exportVersion": "1.0.0", + "exportedBy": "Adafruit", + "exportedAt": "2024-01-01T02:02:02.020Z", + "exportedFromDevice": { + "board": "pyportal-titano-tinyusb", + "firmwareVersion": "1.0.0-beta.76" + }, + "components": [ + { + "name": "Onboard Red LED", + "pinName": "D13", + "type": "led", + "mode": "DIGITAL", + "direction": "OUTPUT", + "isPin": true + }, + { + "name": "NeoPixel", + "pixelNumber": 1, + "pixelsOrder": "GRB", + "pixelBrightness": 255, + "pinName": "D2", + "type": "neopixel", + "pixelsType": "NEOPIXEL", + "isPixel": true + }, + { + "name": "TFT Backlight", + "type": "dimmable_led", + "pwmSetting": "fixedFrequency", + "frequency": 5000, + "resolution": 12, + "pinName": "D25", + "isPWM": true + }, + { + "name": "Light Sensor", + "pinName": "A16", + "type": "light_sensor", + "mode": "ANALOG", + "direction": "INPUT", + "analogReadMode": "PIN_VALUE", + "period": 30, + "isPin": true + } + ] +} \ No newline at end of file