diff examples/basic_analog_output/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/basic_analog_output/render.cpp	Fri May 27 18:12:15 2016 +0100
+++ b/examples/basic_analog_output/render.cpp	Fri May 27 18:21:21 2016 +0100
@@ -57,7 +57,7 @@
 		for(unsigned int channel = 0; channel < context->analogChannels; channel++) {
 			float out = kMinimumAmplitude + kAmplitudeRange * 0.5f * (1.0f + sinf(gPhase + relativePhase));
 
-			analogWriteFrame(context, n, channel, out);
+			analogWrite(context, n, channel, out);
 
 			// Advance by pi/4 (1/8 of a full rotation) for each channel
 			relativePhase += M_PI * 0.25;