Libraries \ FirmataOpenframeworks

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Class

ofWiring

Name

sendAnalogPinReporting()

Examples
void testApp::update(){
	if ( wiring.isWiringReady()){
		if (bSetupWiring == false){
			setupWiring();
			bSetupWiring = true;	// only do this once

		}
		// 2nd do the update of the wiring

		updateWiring();
	}
}
//--------------------------------------------------------------

void testApp::setupWiring(){
	wiring.sendAnalogPinReporting(0, ANALOG);
}
//--------------------------------------------------------------

void testApp::updateWiring(){
	// update the wiring

	wiring.update();
	cout<<wiring.getAnalog(0)<<endl;
}
Description Enable the report from a given pin.
Syntax
sendAnalogPinReporting(pin, mode)
Parameters
pin int: The number of the pin from 0 to 7.
mode ANALOG, ON, OFF.
Returns None
Usage Application
Updated on July 07, 2011 11:10:03pm PDT

Creative Commons License