Adafruit Unified Sensor Library
Public Attributes | List of all members
sensors_color_t Struct Reference

#include <Adafruit_Sensor.h>

Public Attributes

union {
   float   c [3]
 Raw 3-element data.
 
   struct {
      float   r
 
      float   g
 
      float   b
 
   } 
 RGB data in floating point notation.
 
}; 
 Union of various ways to describe RGB colorspace.
 
uint32_t rgba
 

Detailed Description

struct sensors_color_s is used to return color data in a common format.

Member Data Documentation

◆ r

float sensors_color_t::r

Red component

◆ g

float sensors_color_t::g

Green component

◆ b

float sensors_color_t::b

Blue component

◆ rgba

uint32_t sensors_color_t::rgba

24-bit RGBA value


The documentation for this struct was generated from the following file: