Driver for Me touch sensor device.
More...
#include <src/MeTouchSensor.h>
Driver for Me touch sensor device.
Class: MeTouchSensor
- Description
- Declaration of Class MeTouchSensor.
- Copyright (C), 2012-2016, MakeBlock
◆ MeTouchSensor() [1/2]
| MeTouchSensor::MeTouchSensor |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the touch Sensor to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MeTouchSensor() [2/2]
| MeTouchSensor::MeTouchSensor |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the touch Sensor to arduino port
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ setpin()
| void MeTouchSensor::setpin |
( |
uint8_t |
TogPin, |
|
|
uint8_t |
OutputPin |
|
) |
| |
- Function
- setpin
- Description
- Reset the touch Sensor available PIN by its arduino port.
- Parameters
-
| [in] | TogPin | - arduino port for output type option pin(should digital pin) |
| [in] | OutputPin | - arduino port for output pin(should digital pin) |
- Output
- None
- Returns
- None
- Others
- None
◆ SetTogMode()
| void MeTouchSensor::SetTogMode |
( |
uint8_t |
TogMode | ) |
|
- Function
- SetTogMode
- Description
- Set the output type.
- Parameters
-
| [in] | TogMode | - 1=> Toggle mode; 0(default)=>Direct mode |
- Output
- None
- Returns
- None
- Others
- None
◆ touched()
| bool MeTouchSensor::touched |
( |
void |
| ) |
|
- Function
- touched
- Description
- Read and return the output signal.
- Output
- None
- Returns
- The output signal of touch sensor
- Others
- None
The documentation for this class was generated from the following files: