diff examples/basic_blink/render.cpp @ 314:611306d840b3 prerelease

Merge
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 19:00:43 +0100
parents 02c4ca0e3718
children db2fe4e1b88e
line wrap: on
line diff
--- a/examples/basic_blink/render.cpp	Fri May 27 18:55:34 2016 +0100
+++ b/examples/basic_blink/render.cpp	Fri May 27 19:00:43 2016 +0100
@@ -14,7 +14,7 @@
 
 bool setup(BelaContext *context, void *userData)
 {
-    pinModeFrame(context, 0, P8_07, OUTPUT);
+    pinMode(context, 0, P8_07, OUTPUT);
 	return true;
 }
 
@@ -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;
       }
     }