diff examples/basic_button/render.cpp @ 301:e4392164b458 prerelease

RENAMED BeagleRT to Bela AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, scripts probably not working
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 14:34:41 +0100
parents dbeed520b014
children 1feb9c23ac57
line wrap: on
line diff
--- a/examples/basic_button/render.cpp	Fri May 27 13:58:20 2016 +0100
+++ b/examples/basic_button/render.cpp	Fri May 27 14:34:41 2016 +0100
@@ -4,7 +4,7 @@
  * Queen Mary, University of London
  */
 
-#include <BeagleRT.h>
+#include <Bela.h>
 #include <Utilities.h>
 #include <cmath>
 #include <rtdk.h>
@@ -19,7 +19,7 @@
 //
 // Return true on success; returning false halts the program.
 
-bool setup(BeagleRTContext *context, void *userData)
+bool setup(BelaContext *context, void *userData)
 {
 	pinModeFrame(context, 0, P8_08, INPUT);
 	pinModeFrame(context, 0, P8_07, OUTPUT);
@@ -39,7 +39,7 @@
 * The program will read the button and make the LED blink when the button is pressed.
 */
 
-void render(BeagleRTContext *context, void *userData)
+void render(BelaContext *context, void *userData)
 {
 	for(unsigned int n=0; n<context->digitalFrames; n++){
 		int status=digitalReadFrame(context, 0, P8_08); //read the value of the button
@@ -54,7 +54,7 @@
 // cleanup() is called once at the end, after the audio has stopped.
 // Release any resources that were allocated in setup().
 
-void cleanup(BeagleRTContext *context, void *userData)
+void cleanup(BelaContext *context, void *userData)
 {
 	// Nothing to do here
 }