Mercurial > hg > beaglert
diff examples/stepper/render.cpp @ 308:1feb9c23ac57 prerelease
Renamed read/write functions to remove the Frame --> e.g. analogWriteFrameOnce -> analogWriteOnce, digitalReadFrame -> digitalRead
author | andrewm |
---|---|
date | Fri, 27 May 2016 18:21:21 +0100 |
parents | e4392164b458 |
children | 02c4ca0e3718 |
line wrap: on
line diff
--- a/examples/stepper/render.cpp Fri May 27 18:12:15 2016 +0100 +++ b/examples/stepper/render.cpp Fri May 27 18:21:21 2016 +0100 @@ -76,27 +76,27 @@ { for(unsigned int n = 0; n < context->audioFrames; n++) { if(gPhase == 0 || gPhase == 1) { - digitalWriteFrameOnce(context, n, gPinB1, HIGH); - digitalWriteFrameOnce(context, n, gPinB2, LOW); + digitalWriteOnce(context, n, gPinB1, HIGH); + digitalWriteOnce(context, n, gPinB2, LOW); } else { - digitalWriteFrameOnce(context, n, gPinB1, LOW); - digitalWriteFrameOnce(context, n, gPinB2, HIGH); + digitalWriteOnce(context, n, gPinB1, LOW); + digitalWriteOnce(context, n, gPinB2, HIGH); } if(gPhase == 1 || gPhase == 2) { - digitalWriteFrameOnce(context, n, gPinA1, HIGH); - digitalWriteFrameOnce(context, n, gPinA2, LOW); + digitalWriteOnce(context, n, gPinA1, HIGH); + digitalWriteOnce(context, n, gPinA2, LOW); } else { - digitalWriteFrameOnce(context, n, gPinA1, LOW); - digitalWriteFrameOnce(context, n, gPinA2, HIGH); + digitalWriteOnce(context, n, gPinA1, LOW); + digitalWriteOnce(context, n, gPinA2, HIGH); } if(--gServoCounter > 0) - digitalWriteFrameOnce(context, n, gPinServo, HIGH); + digitalWriteOnce(context, n, gPinServo, HIGH); else - digitalWriteFrameOnce(context, n, gPinServo, LOW); + digitalWriteOnce(context, n, gPinServo, LOW); if(++gStepCounter >= gStepLengthSamples) { gStateCounter++;