Skip to content

Commit

Permalink
Merge pull request #134 from adafruit/add-titano-update-pyportal-pins
Browse files Browse the repository at this point in the history
Add titano update pyportal pins
  • Loading branch information
tyeth authored Jan 16, 2024
2 parents 5991a5c + f212f59 commit 5784c68
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 16 deletions.
17 changes: 8 additions & 9 deletions boards/pyportal-tinyusb/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
{
"name": "D13",
"displayName": "D13 LED",
"dataType": "bool",
"hasPWM": true
"dataType": "bool"
},
{
"name": "D25",
Expand All @@ -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"
}
],
Expand Down
13 changes: 6 additions & 7 deletions boards/pyportal-tinyusb/magic.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -53,7 +52,7 @@
},
{
"name": "Light Sensor",
"pinName": "A2",
"pinName": "A16",
"type": "light_sensor",
"mode": "ANALOG",
"direction": "INPUT",
Expand Down
77 changes: 77 additions & 0 deletions boards/pyportal-titano-tinyusb/definition.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
}
Binary file added boards/pyportal-titano-tinyusb/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added boards/pyportal-titano-tinyusb/images/reset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added boards/pyportal-titano-tinyusb/images/usb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions boards/pyportal-titano-tinyusb/magic.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}

0 comments on commit 5784c68

Please sign in to comment.