MatrixMiniR4
1.1.5
Matrix Mini R4 Arduino Library API Documentation
Loading...
Searching...
No Matches
MiniR4BTN.h
Go to the documentation of this file.
1
7
#ifndef MINIR4BTN_H
8
#define MINIR4BTN_H
9
10
#include "
MMLower.h
"
11
20
template
<u
int
8_t ID>
21
class
MiniR4BTN
22
{
23
public
:
24
MiniR4BTN
() { _id = ID; }
25
34
bool
getState
(
void
)
35
{
36
bool
state =
false
;
37
MMLower::RESULT
result =
mmL
.
GetButtonState
(_id, state);
38
return
state;
39
}
40
41
private
:
42
uint8_t _id;
43
};
44
45
#endif
// MINIR4BTN_H
mmL
MMLower mmL(8, 9, 57600)
MMLower.h
Handling the Lower MCU (STM32) communication.
MMLower::GetButtonState
RESULT GetButtonState(uint8_t num, bool &btnState)
Definition
MMLower.cpp:722
MMLower::RESULT
RESULT
Definition
MMLower.h:215
MiniR4BTN
A class template for handling button state retrieval for a specific button ID.
Definition
MiniR4BTN.h:22
MiniR4BTN::MiniR4BTN
MiniR4BTN()
Definition
MiniR4BTN.h:24
MiniR4BTN::getState
bool getState(void)
Retrieves the current state of the button.
Definition
MiniR4BTN.h:34
MatrixMiniR4_DOX
src
Modules
MiniR4BTN.h
Generated by
1.12.0