M5Unit-RGB 0.0.2 git rev:51dfbe6
Loading...
Searching...
No Matches
unit_LED.cpp File Reference

LED base unit for M5UnitUnified. More...

#include "unit_LED.hpp"
#include "utility/m5unit_rgb_utility.hpp"
#include <M5Utility.hpp>
#include <esp_random.h>
#include <driver/rmt.h>

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Functions

int8_t m5::unit::rgb::offsetR (const Order f)
 Offset of Red.
 
int8_t m5::unit::rgb::offsetG (const Order f)
 Offset of Green.
 
int8_t m5::unit::rgb::offsetB (const Order f)
 Offset of Blue.
 
int8_t m5::unit::rgb::offsetW (const Order f)
 Offset of White.
 

Detailed Description

LED base unit for M5UnitUnified.

Function Documentation

◆ offsetB()

int8_t m5::unit::rgb::offsetB ( const Order f)

Offset of Blue.

Parameters
fColor order
Returns
Byte offset of Blue in the packed pixel (-1 if not present)

◆ offsetG()

int8_t m5::unit::rgb::offsetG ( const Order f)

Offset of Green.

Parameters
fColor order
Returns
Byte offset of Green in the packed pixel (-1 if not present)

◆ offsetR()

int8_t m5::unit::rgb::offsetR ( const Order f)

Offset of Red.

Parameters
fColor order
Returns
Byte offset of Red in the packed pixel (-1 if not present)

◆ offsetW()

int8_t m5::unit::rgb::offsetW ( const Order f)

Offset of White.

Parameters
fColor order
Returns
Byte offset of White in the packed pixel (-1 if not present)