diff --git a/boards/raspi-5/definition.json b/boards/raspi-5/definition.json new file mode 100644 index 0000000..cc591fe --- /dev/null +++ b/boards/raspi-5/definition.json @@ -0,0 +1,152 @@ +{ + "boardName": "raspi-5", + "mcuName": "bcm2712", + "mcuRefVoltage": 3.3, + "displayName": "Raspberry Pi 5", + "vendor": "Raspberry Pi", + "productURL": "https://www.adafruit.com/product/5813", + "documentationURL": "https://learn.adafruit.com/", + "installMethod": "python", + "components": { + "digitalPins": [ + { + "name": "D0", + "displayName": "D0", + "dataType": "bool" + }, + { + "name": "D1", + "displayName": "D1", + "dataType": "bool" + }, + { + "name": "D4", + "displayName": "D4", + "dataType": "bool" + }, + { + "name": "D5", + "displayName": "D5", + "dataType": "bool" + }, + { + "name": "D6", + "displayName": "D6", + "dataType": "bool" + }, + { + "name": "D7", + "displayName": "D7", + "dataType": "bool" + }, + { + "name": "D8", + "displayName": "D8", + "dataType": "bool" + }, + { + "name": "D9", + "displayName": "D9", + "dataType": "bool" + }, + { + "name": "D10", + "displayName": "D10", + "dataType": "bool" + }, + { + "name": "D11", + "displayName": "D11", + "dataType": "bool" + }, + { + "name": "D12", + "displayName": "D12 (PWM Output 0)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D13", + "displayName": "D13 (PWM Output 1)", + "dataType": "bool", + "hasPWM": true, + "hasServo": true + }, + { + "name": "D14", + "displayName": "D14 (UART TX)", + "dataType": "bool", + "uartTx": true + }, + { + "name": "D15", + "displayName": "D15 (UART RX)", + "dataType": "bool", + "uartRx": true + }, + { + "name": "D16", + "displayName": "D16", + "dataType": "bool" + }, + { + "name": "D17", + "displayName": "D17", + "dataType": "bool" + }, + { + "name": "D18", + "displayName": "D18", + "dataType": "bool" + }, + { + "name": "D19", + "displayName": "D19", + "dataType": "bool" + }, + { + "name": "D20", + "displayName": "D20", + "dataType": "bool" + }, + { + "name": "D21", + "displayName": "D21", + "dataType": "bool" + }, + { + "name": "D22", + "displayName": "D22", + "dataType": "bool" + }, + { + "name": "D23", + "displayName": "D23", + "dataType": "bool" + }, + { + "name": "D24", + "displayName": "D24", + "dataType": "bool" + }, + { + "name": "D25", + "displayName": "D25", + "dataType": "bool" + }, + { + "name": "D26", + "displayName": "D26", + "dataType": "bool" + }, + { + "name": "D27", + "displayName": "D27", + "dataType": "bool" + } + ], + "analogPins": [], + "i2cPorts": [] + } +} \ No newline at end of file diff --git a/boards/raspi-5/image.png b/boards/raspi-5/image.png new file mode 100644 index 0000000..16fd63a Binary files /dev/null and b/boards/raspi-5/image.png differ diff --git a/boards/schema.json b/boards/schema.json index 9ad18d3..ad07604 100644 --- a/boards/schema.json +++ b/boards/schema.json @@ -95,28 +95,36 @@ "displayName": { "type": "string" }, "dataType": { "type": "string" }, "direction": { - "description": "This pin's direction, either INPUT or OUTPUT. For pins that are input or output ONLY, leave blank if it supports both.", + "description": "For pins that have a fixed direction, the pin's direction. Leave blank if it supports both.", "type": "string", "pattern": "^(INPUT|OUTPUT)$" }, + "hasPullup": { + "description": "If set, this pin has an internal pull-up resistor that can be activated.", + "type": "boolean" + }, + "hasPulldown": { + "description": "If set, this pin has an internal pull-down resistor that can be activated.", + "type": "boolean" + }, "hasPWM": { - "description": "If true, this digital pin supports general PWM output, and thus PWM components.", + "description": "If set, this pin supports PWM output.", "type": "boolean" }, "hasServo": { - "description": "If true, hasPWM should also be true, and this PWM-enabled pin also supports servo components.", + "description": "If set, this pin supports servo output in addition to standard PWM output.", "type": "boolean" }, "uartTx": { - "description": "If true, this pin will be used as the UART transmit pin. There should also be a 'uartRx' property on another pin.", + "description": "If set, this pin will be used as the UART transmit pin. There should also be a 'uartRx' property on another pin.", "type": "boolean" }, "uartRx": { - "description": "If true, this pin will be used as the UART receive pin. There should also be a 'uartTx' property on another pin.", + "description": "If set, this pin will be used as the UART receive pin. There should also be a 'uartTx' property on another pin.", "type": "boolean" }, "isHardwired": { - "description": "If true, this pin is wired directly to a built-in component. It will only be available to be selected when adding a component of that type.", + "description": "If set, this pin is wired directly to a built-in component. It will only be available to be selected when adding a component of that type.", "type": "boolean" } }, @@ -139,21 +147,25 @@ "displayName": { "type": "string" }, "dataType": { "type": "string" }, "direction": { - "description": "This pin's direction, either INPUT or OUTPUT. For pins that are input or output ONLY, leave blank if it supports both.", + "description": "For pins that have a fixed direction, the pin's direction. Leave blank if it supports both.", "type": "string", "pattern": "^(INPUT|OUTPUT)$" }, "maxResolution": { "type": "number" }, "hasPWM": { - "description": "If true, this digital pin supports general PWM output, and thus PWM components.", + "description": "If set, this pin supports PWM output.", "type": "boolean" }, "hasServo": { - "description": "If true, hasPWM should also be true, and this PWM-enabled pin also supports servo components.", + "description": "If set, this pin supports servo output in addition to standard PWM output.", "type": "boolean" }, "isHardwired": { - "description": "If true, this pin is wired directly to a built-in component. It will only be available to be selected when adding a component of that type.", + "description": "If set, this pin is wired directly to a built-in component. It will only be available to be selected when adding a component of that type.", + "type": "boolean" + }, + "hasADC": { + "description": "If set, this pin can be used as an ADC input.", "type": "boolean" } }