#include <ofArduino.h>
Public Member Functions | |
ofArduino () | |
virtual | ~ofArduino () |
int | connect (string device, int baud=57600) |
bool | isArduinoReady () |
void | setUseDelay (bool bDelay) |
void | sendServo (int pin, int value, bool force=false) |
void | sendServoAttach (int pin, int minPulse=544, int maxPulse=2400, int angle=180) |
void | sendServoDetach (int pin) |
int | getServo (int pin) |
Protected Member Functions | |
void | processSysExData (vector< unsigned char > data) |
Protected Attributes | |
bool | bUseDelay |
bool | connected |
float | connectTime |
int | _servoValue [ARD_TOTAL_DIGITAL_PINS] |
float | _temp |
float | _humidity |
This class extend ofStandardFirmata and provides additional functionality like servo support through SysEx messages. use the OFstdFirmata for servo support...
ofArduino::ofArduino | ( | ) |
ofArduino::~ofArduino | ( | ) | [virtual] |
int ofArduino::connect | ( | string | device, |
int | baud = 57600 |
||
) |
Reimplemented from ofStandardFirmata.
int ofArduino::getServo | ( | int | pin ) |
bool ofArduino::isArduinoReady | ( | ) |
void ofArduino::processSysExData | ( | vector< unsigned char > | data ) | [protected, virtual] |
Reimplemented from ofStandardFirmata.
void ofArduino::sendServo | ( | int | pin, |
int | value, | ||
bool | force = false |
||
) |
void ofArduino::sendServoAttach | ( | int | pin, |
int | minPulse = 544 , |
||
int | maxPulse = 2400 , |
||
int | angle = 180 |
||
) |
void ofArduino::sendServoDetach | ( | int | pin ) |
void ofArduino::setUseDelay | ( | bool | bDelay ) |
float ofArduino::_humidity [protected] |
int ofArduino::_servoValue[ARD_TOTAL_DIGITAL_PINS] [protected] |
float ofArduino::_temp [protected] |
bool ofArduino::bUseDelay [protected] |
bool ofArduino::connected [protected] |
float ofArduino::connectTime [protected] |