M5Unit-LIGHT 0.1.0 git rev:1ddbe92
Loading...
Searching...
No Matches
unit_Light_data.hpp File Reference

UnitLight (SKU:U021) data types (default values and Data struct) More...

#include <cstdint>
#include <limits>
#include <m5_utility/stl/extension.hpp>

Go to the source code of this file.

Classes

struct  m5::unit::light::Data
 Measurement data group. More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 
namespace  light
 For UnitLight (U021)
 

Variables

Default values
constexpr uint32_t m5::unit::light::DEFAULT_INTERVAL_MS {50}
 Default sampling interval (ms)
 
constexpr uint16_t m5::unit::light::DEFAULT_DARK {0}
 Default dark reference (ADC value)
 
constexpr uint16_t m5::unit::light::DEFAULT_BRIGHT {4095}
 Default bright reference (ADC value, 12-bit full scale)
 

Detailed Description

UnitLight (SKU:U021) data types (default values and Data struct)

Header-only; does not depend on M5UnitComponent, so it can be included from native (non-ESP32) builds.