-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
Boards utilizing a MCU with a built-in temperature sensor (measuring how hot the chip is) are identified via adafruit/Wippersnapper_Boards#94
To expose this as a component, we'd need a new component type called mcuTempSensor
Proposed schema.json
:
{
"title": "MCU Temperature Sensor Component Definition",
"description": "A MCU temperature sensor WipperSnapper component for use in Adafruit IO",
"type": "object",
"required": [ "displayName", "subcomponents", ],
"additionalProperties": false,
"properties": {
"displayName": {
"description": "The human-friendly name of this component.",
"type": "string",
"minLength": 3,
"maxLength": 30
},
"published": {
"description": "If true, this component is supported by the current firmware version and will be displayed to all users. If false, it is hidden behind a developer toggle so that contributors can still work on it against the production site.",
"type": "boolean"
},
"subcomponents": {
"description": "The chip's temperature sensor (and its Fahrenheit counterpart).",
"type": "array",
"items": {
"type": "string",
"pattern": "^ambient-temp(-fahrenheit)?$"
}
}
}
}
Depending on what MCU name is defined by the board's definition.json, the component picker would present an image of that chip (maybe we can also overlay a thermometer icon):
For example, the PicoW use the RP2040 platform and the component's image would look like:
Related:
adafruit/Adafruit_Wippersnapper_Arduino#390
adafruit/Wippersnapper_Boards#94