mirror of
https://github.com/m5stack/M5UnitUnified.git
synced 2026-05-20 11:24:51 -07:00
Cosmetic change
This commit is contained in:
@@ -7,10 +7,10 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
path:
|
||||
- check: './src' # path to include
|
||||
exclude: '' # path to exclude
|
||||
- check: './examples' # path to include
|
||||
exclude: '' # path to exclude
|
||||
- check: 'src'
|
||||
exclude: ''
|
||||
- check: 'examples'
|
||||
exclude: ''
|
||||
steps:
|
||||
- uses: actions/checkout@v3.1.0
|
||||
- name: Run clang-format style check for C/C++/Protobuf programs.
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
license information.
|
||||
*/
|
||||
|
||||
#define USING_PAHUB (2) // Connection channel number for use via PaHub.
|
||||
#define USING_M5HAL // When using M5HAL
|
||||
#define USING_PAHUB (2) // Connection channel number for use via PaHub.
|
||||
#define USING_M5HAL // When using M5HAL
|
||||
|
||||
#include <M5Unified.h>
|
||||
#include <M5UnitUnified.h>
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
// setup.loop in SCD4x.cpp
|
||||
#include <M5UnitUnified.h>
|
||||
|
||||
|
||||
+13
-11
@@ -5,7 +5,7 @@
|
||||
@mainpage M5UnitUnfied
|
||||
Library for abstracted M5 units.
|
||||
C++11 or later.
|
||||
|
||||
|
||||
@copyright M5Stack. All rights reserved.
|
||||
@license Licensed under the MIT license. See LICENSE file in the project root
|
||||
for full license information.
|
||||
@@ -33,9 +33,9 @@ class UnitUnified {
|
||||
|
||||
///@name Constructor
|
||||
///@{
|
||||
UnitUnified() = default;
|
||||
UnitUnified(const UnitUnified&) = delete;
|
||||
UnitUnified(UnitUnified&&) = default;
|
||||
UnitUnified() = default;
|
||||
UnitUnified(const UnitUnified&) = delete;
|
||||
UnitUnified(UnitUnified&&) = default;
|
||||
///@}
|
||||
|
||||
///@name Assignment
|
||||
@@ -46,24 +46,26 @@ class UnitUnified {
|
||||
|
||||
///@name Adding unit to be managed
|
||||
///@{
|
||||
//bool add(Component& u, Port& port);
|
||||
// bool add(Component& u, Port& port);
|
||||
bool add(Component& u, m5::hal::bus::Bus* bus);
|
||||
// [[deprecated("use add(Component& u, Port& port) or add(Component& u, m5::hal::bus::Bus* bus);")]]
|
||||
// [[deprecated("use add(Component& u, Port& port) or add(Component& u,
|
||||
// m5::hal::bus::Bus* bus);")]]
|
||||
bool add(Component& u, TwoWire& wire);
|
||||
///@}
|
||||
|
||||
|
||||
bool begin();
|
||||
void update();
|
||||
|
||||
//! @brief Output information for debug
|
||||
std::string debugInfo() const;
|
||||
|
||||
protected:
|
||||
|
||||
protected:
|
||||
bool add_children(Component& u);
|
||||
bool add(Component& u, m5::unit::Adapter* a);
|
||||
|
||||
std::string make_unit_info(const Component* u, const uint8_t indent = 0) const;
|
||||
|
||||
std::string make_unit_info(const Component* u,
|
||||
const uint8_t indent = 0) const;
|
||||
|
||||
protected:
|
||||
container_type _units;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user