M5Unit-RFID 0.0.1 git rev:d8076ed
Loading...
Searching...
No Matches
unit_WS1850S.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
3 *
4 * SPDX-License-Identifier: MIT
5 */
10#ifndef M5_UNIT_RFID2_UNIT_WS1850S_HPP
11#define M5_UNIT_RFID2_UNIT_WS1850S_HPP
12
13#include "unit_MFRC522.hpp"
14
15namespace m5 {
16namespace unit {
17
23class UnitWS1850S : public UnitMFRC522 {
24 M5_UNIT_COMPONENT_HPP_BUILDER(UnitWS1850S, 0x28);
25
26public:
31 explicit UnitWS1850S(const uint8_t addr = DEFAULT_ADDRESS) : UnitMFRC522(addr)
32 {
33 }
37 virtual ~UnitWS1850S()
38 {
39 }
40
45 virtual bool begin() override;
46
47protected:
48 virtual bool self_test() override;
49};
50
51} // namespace unit
52} // namespace m5
53#endif
Radio frequency identification unit.
Definition unit_MFRC522.hpp:89
Radio frequency identification unit.
Definition unit_WS1850S.hpp:23
virtual ~UnitWS1850S()
Destructor.
Definition unit_WS1850S.hpp:37
virtual bool self_test() override
self test
Definition unit_WS1850S.cpp:49
virtual bool begin() override
Begin the unit.
Definition unit_WS1850S.cpp:34
UnitWS1850S(const uint8_t addr=DEFAULT_ADDRESS)
Constructor.
Definition unit_WS1850S.hpp:31
Top level namespace of M5Stack.
Unit-related namespace.
MFRC522 Unit for M5UnitUnified.