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
20template <uint8_t ID>
22{
23public:
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
41private:
42 uint8_t _id;
43};
44
45#endif // MINIR4BTN_H
MMLower mmL(8, 9, 57600)
Handling the Lower MCU (STM32) communication.
RESULT GetButtonState(uint8_t num, bool &btnState)
Definition MMLower.cpp:722
A class template for handling button state retrieval for a specific button ID.
Definition MiniR4BTN.h:22
bool getState(void)
Retrieves the current state of the button.
Definition MiniR4BTN.h:34