M5Unit-RGB 0.0.2 git rev:51dfbe6
Loading...
Searching...
No Matches
unit_RGB.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 M5Stack Technology CO LTD
3 *
4 * SPDX-License-Identifier: MIT
5 */
10#ifndef M5_UNIT_RGB_UNIT_RGB_HPP
11#define M5_UNIT_RGB_UNIT_RGB_HPP
12
13#include "unit_SK6812.hpp"
14
15namespace m5 {
16namespace unit {
17
22class UnitRGB : public UnitSK6812GRB {
23 M5_UNIT_COMPONENT_HPP_BUILDER(UnitRGB, 0x00);
24
25public:
27 UnitRGB() : UnitSK6812GRB(3 /* 3pixels */)
28 {
29 auto ccfg = component_config();
30 ccfg.max_children = 1; // Can connect 1 Unit
31 component_config(ccfg);
32 }
33};
34
35} // namespace unit
36} // namespace m5
37#endif
UnitRGB()
Constructor (3 LEDs)
Definition unit_RGB.hpp:27
Top level namespace of M5Stack.
Unit-related namespace.
SK6812 unit for M5UnitUnified.