M5Unit-RGB 0.0.1 git rev:55cb205
Loading...
Searching...
No Matches
unit_AtomMatrixRGB.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_ATOM_MATRIX_RGB_HPP
11#define M5_UNIT_RGB_UNIT_ATOM_MATRIX_RGB_HPP
12
13#include "unit_RectLED.hpp"
14
15namespace m5 {
16namespace unit {
17
24class UnitAtomMatrixRGB : public UnitRectLED<5, 5, UnitWS2812> {
25 M5_UNIT_COMPONENT_HPP_BUILDER(UnitAtomMatrixRGB, 0x00);
26
27public:
28 UnitAtomMatrixRGB() : UnitRectLED<5, 5, UnitWS2812>()
29 {
30 auto ccfg = component_config();
31 component_config(ccfg);
32 }
34 virtual bool begin() override;
35};
36
37} // namespace unit
38} // namespace m5
39#endif
virtual bool begin() override
Begin the unit.
Definition unit_AtomMatrixRGB.cpp:29
Top level namespace of M5stack.
Unit-related namespace.
Rectangular array LED unit.