Driver for Me_LimitSwitch module.
More...
#include <src/MeLimitSwitch.h>
Driver for Me_LimitSwitch module.
Class: MeLimitSwitch
- Description
- Declaration of Class MeLimitSwitch.
- Copyright (C), 2012-2016, MakeBlock
◆ MeLimitSwitch() [1/3]
| MeLimitSwitch::MeLimitSwitch |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the limit switch to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MeLimitSwitch() [2/3]
| MeLimitSwitch::MeLimitSwitch |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the limit switch to arduino port, the slot2 will be used here.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ MeLimitSwitch() [3/3]
| MeLimitSwitch::MeLimitSwitch |
( |
uint8_t |
port, |
|
|
uint8_t |
slot |
|
) |
| |
Alternate Constructor which can call your own function to map the limit switch to arduino port, you can set any slot for the limit switch device.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
| [in] | slot | - SLOT1 or SLOT2 |
◆ setpin()
| void MeLimitSwitch::setpin |
( |
uint8_t |
switchPin | ) |
|
- Function
- setpin
- Description
- Reset the limit switch available PIN by its arduino port.
- Parameters
-
| [in] | switchPin | - arduino port for switch detect pin. |
- Output
- None
- Return
- None
- Others
- None
◆ touched()
| bool MeLimitSwitch::touched |
( |
void |
| ) |
|
- Function
- touched
- Description
- Get switch value from selected _slot defined by MePort.
- Parameters
-
- Output
- None \Return True if module is touched.
- Others
- None
The documentation for this class was generated from the following files: