#include <Gainer.h>
Public Types | |
typedef void(* | callback_t )(void) |
Public Member Functions | |
Gainer (int portNum=1, int mode=1, bool verbose=false) | |
~Gainer () | |
void | turnOnLED () |
void | turnOffLED () |
void | peekDigitalInput () |
void | peekAnalogInput () |
void | digitalOutput (int value) |
void | setHigh (int port) |
void | setLow (int port) |
void | setOnPressedCallback (callback_t funcp) |
void | setOnReleasedCallback (callback_t funcp) |
typedef void(* Gainer::callback_t)(void) |
Event handler calback
Gainer::Gainer | ( | int | portNum = 1 , |
|
int | mode = 1 , |
|||
bool | verbose = false | |||
) |
Gainer::~Gainer | ( | ) |
Gainer class destructor.
void Gainer::digitalOutput | ( | int | value | ) |
It makes 0V or +5V on digital output port.
value | values of the digital output ports true:1 false:0 |
value | values of the digital output ports true:1 false:0 |
void Gainer::peekAnalogInput | ( | ) |
It can bringing values to analogIn[] at one time.
void Gainer::peekDigitalInput | ( | ) |
It can bringing values to digitalIn[] at one time.
void Gainer::setHigh | ( | int | port | ) |
It makes +5V on digital output port.
port | number of the digital output port |
void Gainer::setLow | ( | int | port | ) |
It makes 0V on digital output port.
port | number of the digital output port |
void Gainer::setOnPressedCallback | ( | callback_t | funcp | ) | [inline] |
set button pressed event Callback function
funcp | button pressed event Callback function pointer |
void Gainer::setOnReleasedCallback | ( | callback_t | funcp | ) | [inline] |
set button released event Callback function
funcp | button released event Callback function pointer |
void Gainer::turnOffLED | ( | ) |
Turn off the LED on gainer. command "l*"
void Gainer::turnOnLED | ( | ) |
Turn on the LED on gainer. command "h*"