diff examples/basic_blink/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/basic_blink/render.cpp	Fri May 27 18:12:15 2016 +0100
+++ b/examples/basic_blink/render.cpp	Fri May 27 18:21:21 2016 +0100
@@ -36,13 +36,13 @@
 	for(unsigned int n=0; n<context->digitalFrames; n++){
     if(count==context->digitalSampleRate*interval){ //if enough samples have elapsed
       count=0; //reset the counter
-    // status=digitalReadFrame(context, 0, P8_07);
+    // status=digitalRead(context, 0, P8_07);
       if(status==GPIO_LOW) { //toggle the status
-          digitalWriteFrame(context, n, P8_07, status); //write the status to the LED
+          digitalWrite(context, n, P8_07, status); //write the status to the LED
           status=GPIO_HIGH;
       }
       else {
-          digitalWriteFrame(context, n, P8_07, status); //write the status to the LED
+          digitalWrite(context, n, P8_07, status); //write the status to the LED
           status=GPIO_LOW;
       }
     }