Mercurial > hg > beaglert
changeset 242:db76215feb69
Added libpd.so
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 18 Apr 2016 03:05:45 +0100 |
parents | adfe95c3cd73 |
children | 0357b8df93a5 |
files | .cproject libpd.so projects/basic_button/render.cpp |
diffstat | 3 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.cproject Mon Apr 18 03:04:34 2016 +0100 +++ b/.cproject Mon Apr 18 03:05:45 2016 +0100 @@ -136,7 +136,7 @@ <sourceEntries> <entry excluding="audio_routines_old.S" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="core"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="include"/> - <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="projects/faust"/> + <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="projects/basic_button"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="source"/> </sourceEntries> </configuration> @@ -264,7 +264,7 @@ <sourceEntries> <entry excluding="audio_routines_old.S" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="core"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="include"/> - <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="projects/faust"/> + <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="projects/basic_button"/> <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="source"/> </sourceEntries> </configuration>
--- a/projects/basic_button/render.cpp Mon Apr 18 03:04:34 2016 +0100 +++ b/projects/basic_button/render.cpp Mon Apr 18 03:05:45 2016 +0100 @@ -42,10 +42,13 @@ void render(BeagleRTContext *context, void *userData) { + float sum=0; for(unsigned int n=0; n<context->digitalFrames; n++){ int status=digitalReadFrame(context, 0, P8_08); //read the value of the button + sum += status; digitalWriteFrame(context, n, P8_07, status); //write the status to the LED } + rt_printf("status: %f\n", sum); } // cleanup() is called once at the end, after the audio has stopped.