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

isWiringReady()

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.sendDigitalPinMode(48, OUTPUT);
	wiring.sendDigitalPinMode(39, INPUT);
}
//--------------------------------------------------------------

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

	wiring.update();
}
Description Returns true if the I/O board is ready to transfer data.
Syntax
isWiringReady()
Returns Boolean
Usage Application
Updated on July 07, 2011 11:10:02pm PDT

Creative Commons License