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 | sendPwm() |
||||
| 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(19, PWM); //4, 5, 6, 7, 19, 20 PWM pins in the Wiring S } //-------------------------------------------------------------- void testApp::updateWiring(){ // update the wiring wiring.update(); wiring.sendPwm(11, (int)(128 + 128 * sin(ofGetElapsedTimef()))); } |
||||
| Description | Writes a PWM value. | ||||
| Syntax | sendDigital(pin, value) |
||||
| Parameters |
|
||||
| Returns | None | ||||
| Usage | Application |

