M5Unit-RGB 0.0.1 git rev:55cb205
Loading...
Searching...
No Matches
unit_HatNeoFlash.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_HAT_NEOFLASH_HPP
11#define M5_UNIT_RGB_UNIT_HAT_NEOFLASH_HPP
12
13#include "unit_RectLED.hpp"
14
15namespace m5 {
16namespace unit {
17
22class HatNeoFlash : public UnitRectLED<18, 7, UnitWS2812> {
23 M5_UNIT_COMPONENT_HPP_BUILDER(HatNeoFlash, 0x00);
24
25public:
26 HatNeoFlash() : UnitRectLED<18, 7, UnitWS2812>()
27 {
28 auto ccfg = component_config();
29 ccfg.max_children = 1; // Can connect 1 Unit
30 component_config(ccfg);
31 }
32};
33
34} // namespace unit
35} // namespace m5
36#endif
Top level namespace of M5stack.
Unit-related namespace.
Rectangular array LED unit.