RumPi 1.0
A self-assembling C++ sensor & actuator library for the Raspberry Pi 5
SensorLevels.h
Go to the documentation of this file.
1#pragma once
2
3namespace RumPi
4{
5 //Dashboard-facing level enums. These deliberately live in Data/ rather than beside their sensor classes
6 //so SelectedSensorReadings - and the UI that consumes it - can name a level without dragging in the
7 //hardware driver headers (wiringPi, i2c, etc.) that the component headers pull in.
8
16 enum class E_LightLevel
17 {
18 LIGHT_DARK = 0,
19 LIGHT_VERY_DIM = 1,
20 LIGHT_DIM = 2,
21 LIGHT_NORMAL = 3,
22 LIGHT_BRIGHT = 4,
24 };
25
34 {
41 };
42} // namespace RumPi
RumPi is the library's top-level facade.
Definition: AlertManager.h:6
E_AirQualityLevel
How bad the air is, best to worst, taking whichever of PM2.5 / PM10 is worse.
Definition: SensorLevels.h:34
@ AIR_QUALITY_VERY_POOR
Very poor.
@ AIR_QUALITY_MODERATELY_POLLUTED
Moderately polluted.
@ AIR_QUALITY_SEVERE
Severe and hazardous.
@ AIR_QUALITY_SATISFACTORY
Satisfactory.
E_LightLevel
How much light the sensor is seeing, darkest to brightest.
Definition: SensorLevels.h:17
@ LIGHT_NORMAL
Normal indoor lighting.
@ LIGHT_DARK
Pitch dark.
@ LIGHT_VERY_DIM
Very dim (e.g. dusk / streetlight threshold).
@ LIGHT_VERY_BRIGHT
Very bright (e.g. direct sunlight).