M5Unit-RS485 0.1.0 git rev:8a0af48
Loading...
Searching...
No Matches
M5UnitUnifiedRS485.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
3 *
4 * SPDX-License-Identifier: MIT
5 */
13#ifndef M5_UNIT_UNIFIED_RS485_HPP
14#define M5_UNIT_UNIFIED_RS485_HPP
15
16#include "unit/unit_SP485.hpp"
17#include "unit/unit_SIT3088.hpp"
19
24namespace m5 {
25
30namespace unit {
31
53public:
55 {
56 auto cfg = config();
57 cfg.dir_pin = 34; // Tab5 built-in fixed pin
58 config(cfg);
59 }
60 virtual ~Tab5BuiltinRS485() = default;
61};
62
63} // namespace unit
64} // namespace m5
65#endif
M5Stack Tab5 built-in RS-485 (SIT3088 with DIR pin fixed to GPIO34)
Definition M5UnitUnifiedRS485.hpp:52
RS-485 unit using the SIT3088 transceiver (manual direction control via a DIR pin)
Definition unit_SIT3088.hpp:30
config_t config()
Gets the configuration.
Definition unit_SIT3088.hpp:64
RS-485 unit using the SP485EEN transceiver (auto direction control)
Definition unit_SP485.hpp:22
Top level namespace of M5Stack.
Unit-related namespace.
SIT3088 unit for M5UnitUnified (manual direction-controlled RS-485 transceiver)
SP485 unit for M5UnitUnified.
Arduino Stream adapter for UnitSP485.