Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Component Request: Support MCUs with built-in temperature sensors #111

Open
brentru opened this issue Dec 30, 2022 · 0 comments
Open
Labels

Comments

@brentru
Copy link
Member

brentru commented Dec 30, 2022

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:

image

For the ESP32-S2 platform
image

Related:
adafruit/Adafruit_Wippersnapper_Arduino#390
adafruit/Wippersnapper_Boards#94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant