16#ifndef M5_UNIT_UNIFIED_HPP
17#define M5_UNIT_UNIFIED_HPP
44 using container_type = std::vector<Component*>;
65 bool add(
Component& u, m5::hal::bus::Bus* bus);
74 void update(
const bool force =
false);
83 std::string make_unit_info(
const Component* u,
const uint8_t indent = 0)
const;
86 container_type _units{};
89 static uint32_t _registerCount;
Main header of M5UnitComponent.
Adapters to treat M5HAL and TwoWire in the same way.
Definition adapter.hpp:28
Base class of unit component.
Definition M5UnitComponent.hpp:38
For managing and leading units.
Definition M5UnitUnified.hpp:42
std::string debugInfo() const
Output information for debug.
Definition M5UnitUnified.cpp:125
bool begin()
Begin of all units under management.
Definition M5UnitUnified.cpp:102
void update(const bool force=false)
Update of all units under management.
Definition M5UnitUnified.cpp:115
Top level namespace of M5stack.
Definition test_helper.hpp:18