Mercurial > hg > beaglert
diff examples/scope_analogue/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 | db2fe4e1b88e |
line wrap: on
line diff
--- a/examples/scope_analogue/render.cpp Fri May 27 18:12:15 2016 +0100 +++ b/examples/scope_analogue/render.cpp Fri May 27 18:21:21 2016 +0100 @@ -30,8 +30,8 @@ for(unsigned int n = 0; n < context->audioFrames; n++) { // read analogIn channels 0 and 1 - float in1 = analogReadFrame(context, n, 0); - float in2 = analogReadFrame(context, n, 1); + float in1 = analogRead(context, n, 0); + float in2 = analogRead(context, n, 1); // map in1 to amplitude and in2 to frequency float amplitude = in1 * 0.8f;