M5Unit-COLOR 0.1.0 git rev:ba99933
Loading...
Searching...
No Matches
unit_TCS3472x.hpp File Reference

TCS3472x Unit for M5UnitUnified. More...

#include <M5UnitComponent.hpp>
#include <m5_utility/container/circular_buffer.hpp>
#include <array>

Go to the source code of this file.

Classes

struct  m5::unit::tcs3472x::Data
 Measurement data group. More...
 
class  m5::unit::UnitTCS3472x
 Color recognition unit. More...
 
struct  m5::unit::UnitTCS3472x::config_t
 Settings for begin. More...
 
class  m5::unit::UnitTCS34725
 Color recognition unit. More...
 
class  m5::unit::UnitTCS34727
 Color recognition unit. More...
 

Namespaces

namespace  m5
 Top level namespace of M5stack.
 
namespace  tcs3472x
 For TCS3472x.
 

Enumerations

enum class  m5::unit::tcs3472x::Persistence : uint8_t {
  Every , Cycle1 , Cycle2 , Cycle3 ,
  Cycle5 , Cycle10 , Cycle15 , Cycle20 ,
  Cycle25 , Cycle30 , Cycle35 , Cycle40 ,
  Cycle45 , Cycle50 , Cycle55 , Cycle60
}
 Interrupt persistence. More...
 
enum class  m5::unit::tcs3472x::Gain : uint8_t { Controlx1 , Controlx4 , Controlx16 , Controlx60 }
 RGBC Gain Control. More...
 

Detailed Description

TCS3472x Unit for M5UnitUnified.

Enumeration Type Documentation

◆ Gain

enum class m5::unit::tcs3472x::Gain : uint8_t
strong

RGBC Gain Control.

Enumerator
Controlx1 

1x gain

Controlx4 

4x gain

Controlx16 

16x gain

Controlx60 

60x gain

◆ Persistence

enum class m5::unit::tcs3472x::Persistence : uint8_t
strong

Interrupt persistence.

Enumerator
Every 

Every RGBC cycle generates an interrupt.

Cycle1 

1 clear channel value outside of threshold range

Cycle2 

2 clear channel value outside of threshold range

Cycle3 

3 clear channel value outside of threshold range

Cycle5 

5 clear channel value outside of threshold range

Cycle10 

10 clear channel value outside of threshold range

Cycle15 

15 clear channel value outside of threshold range

Cycle20 

20 clear channel value outside of threshold range

Cycle25 

25 clear channel value outside of threshold range

Cycle30 

30 clear channel value outside of threshold range

Cycle35 

35 clear channel value outside of threshold range

Cycle40 

40 clear channel value outside of threshold range

Cycle45 

45 clear channel value outside of threshold range

Cycle50 

50 clear channel value outside of threshold range

Cycle55 

55 clear channel value outside of threshold range

Cycle60 

60 clear channel value outside of threshold range