M5Unit-LIGHT 0.0.2 git rev:6d734f0
Loading...
Searching...
No Matches
unit_Light.hpp File Reference

UnitLight (SKU:U021) for M5UnitUnified. More...

#include <M5UnitComponent.hpp>
#include <m5_utility/stl/extension.hpp>
#include <m5_utility/container/circular_buffer.hpp>
#include "unit_Light_data.hpp"
#include <cstdint>
#include <limits>

Go to the source code of this file.

Classes

class  m5::unit::UnitLight
 Analog light-level detector with a comparator threshold output (U021) More...
 
struct  m5::unit::UnitLight::config_t
 Settings for begin. More...
 

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Detailed Description

UnitLight (SKU:U021) for M5UnitUnified.

U021 combines a photoresistor, a 10 kΩ adjustable resistor, and an LM393 comparator. It exposes one analog (photoresistor voltage) and one digital (comparator threshold) signal.