2#ifndef SENSORDEFINITIONS_H
3#define SENSORDEFINITIONS_H
40 for (
const auto& def : DEFINITIONS) {
41 if (def.type == type) {
SensorType
Enumeration of available sensor types (backward-compatible IDs).
@ PIR
Pedestrian Infrared Sensor.
const SensorDefinition * getDefinition(SensorType type)
Lookup helper to get the SensorDefinition for a given SensorType.
Static metadata for each supported sensor type.
bool usesInterrupt
true if sensor uses a hardware interrupt line
bool ledDefaultOn
true if LED should be ON at boot (polarity-specific)
const char * name
Short name for logging / display.
SensorType type
SensorType enum value.