# HG changeset patch # User Giulio Moro # Date 1460945145 -3600 # Node ID db76215feb69667f5816fe937e6e95e9c773da77 # Parent adfe95c3cd73d28dfec969c82cc2460f46ac5a74 Added libpd.so diff -r adfe95c3cd73 -r db76215feb69 .cproject --- a/.cproject Mon Apr 18 03:04:34 2016 +0100 +++ b/.cproject Mon Apr 18 03:05:45 2016 +0100 @@ -136,7 +136,7 @@ - + @@ -264,7 +264,7 @@ - + diff -r adfe95c3cd73 -r db76215feb69 libpd.so Binary file libpd.so has changed diff -r adfe95c3cd73 -r db76215feb69 projects/basic_button/render.cpp --- 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; ndigitalFrames; 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.