Driver for Me 4 Button module.
More...
#include <src/Me4Button.h>
Driver for Me 4 Button module.
Class: Me4Button
- Description
- Declaration of Class Me4Button
- Copyright (C), 2012-2016, MakeBlock
◆ Me4Button() [1/2]
| Me4Button::Me4Button |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the Me4Button to arduino port,
no pins are used or initialized here.
- Parameters
-
◆ Me4Button() [2/2]
| Me4Button::Me4Button |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the Me4Button to arduino port,
the slot2 pin will be used for key pin.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ pressed()
| uint8_t Me4Button::pressed |
( |
void |
| ) |
|
- Function
- pressed
- Description
- Read key ADC value to a variable.
- Parameters
-
- Output
- None
- Returns
- Return the key vlaue, the value maybe KEY_1,KEY_2,KEY_3,KEY_4,KEY_NULL.
- Others
- The key should periodically read, if it was delayed, It will affect the sensitivity of the keys
◆ setpin()
| void Me4Button::setpin |
( |
uint8_t |
port | ) |
|
- Function
- setpin
- Description
- Set the PIN for button module.
- Parameters
-
| [in] | port | - arduino gpio number |
- Output
- None
- Returns
- None
- Others
- None
The documentation for this class was generated from the following files: