Driver for Me potentiometer module.
More...
#include <src/MePotentiometer.h>
Driver for Me potentiometer module.
Class: MePotentiometer
- Description
- Declaration of Class MePotentiometer.
- Copyright (C), 2012-2016, MakeBlock
◆ MePotentiometer() [1/2]
| MePotentiometer::MePotentiometer |
( |
void |
| ) |
|
Alternate Constructor which can call your own function to map the Me potentiometer device to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MePotentiometer() [2/2]
| MePotentiometer::MePotentiometer |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the Me potentiometer device to arduino port
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ read()
| uint16_t MePotentiometer::read |
( |
void |
| ) |
|
- Function
- read()
- Description
- Read DAC value of Me potentiometer module.
- Parameters
-
- Output
- None
- Return
- The value of potentiometer device(0-1024)
- Others
- None
◆ setpin()
| void MePotentiometer::setpin |
( |
uint8_t |
potentiometerPin | ) |
|
- Function
- setpin
- Description
- Reset the potentiometer device available PIN by its arduino port.
- Parameters
-
| [in] | potentiometerPin | - arduino port for potentiometer output port |
- Output
- None
- Return
- None
- Others
- None
The documentation for this class was generated from the following files: