diff examples/analogDigitalDemo/render.cpp @ 310:02c4ca0e3718 prerelease

Renamed pinModeFrame -> pinMode
author andrewm
date Fri, 27 May 2016 18:29:20 +0100
parents 1feb9c23ac57
children 493a07f6ec09
line wrap: on
line diff
--- a/examples/analogDigitalDemo/render.cpp	Fri May 27 18:26:45 2016 +0100
+++ b/examples/analogDigitalDemo/render.cpp	Fri May 27 18:29:20 2016 +0100
@@ -56,7 +56,7 @@
         digitalWrite(context, 2, P8_08, GPIO_LOW);
         digitalWrite(context, 4, P8_08, GPIO_HIGH);
         digitalWrite(context, 5, P8_08, GPIO_LOW);
-        pinModeFrame(context, 0, P9_16, GPIO_INPUT); // set channel 10 to input
+        pinMode(context, 0, P9_16, GPIO_INPUT); // set channel 10 to input
         // in this buffer the frames of channel 1 will look like this: 1 1 0 0 1 0 0 0 .... 0
         // in the next buffer each frame of channel 1 will be initialized to 0 (the last value of this buffer)
 	}
@@ -70,7 +70,7 @@
         context->digital[n]=context->digital[n] | ( ((context->audioSampleCount&0b1111111)<<(16+2)) ) ;  // set the bits in the higher word to the desired output value, keeping the lower word unchanged
         digitalWrite(context, n, P8_29, digitalRead(context, n, P8_30)); // echo the input from from channel 15 to channel 14
         digitalWrite(context, n, P8_28, digitalRead(context, n, P9_16)); // echo the input from from channel 10 to channel 13
-        pinModeFrame(context, 0, P8_30, 0); //set channel 15 to input
+        pinMode(context, 0, P8_30, 0); //set channel 15 to input
 	}
 
 	for(unsigned int n=0; n<context->analogFrames; n++){