Mercurial > hg > beaglert
comparison examples/basic_pulseIn/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 |
comparison
equal
deleted
inserted
replaced
307:ff5f346a293e | 308:1feb9c23ac57 |
---|---|
57 } | 57 } |
58 if(count == (gPulseLength + gSamplesBetweenPulses)){ | 58 if(count == (gPulseLength + gSamplesBetweenPulses)){ |
59 pulseOut = true; | 59 pulseOut = true; |
60 count = 0; | 60 count = 0; |
61 } | 61 } |
62 digitalWriteFrame(context, n, gDigitalOutPin, pulseOut); | 62 digitalWrite(context, n, gDigitalOutPin, pulseOut); |
63 count++; | 63 count++; |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 // cleanup() is called once at the end, after the audio has stopped. | 67 // cleanup() is called once at the end, after the audio has stopped. |