can you create a new C++ project and put this code in there?
#include <Bela.h>
unsigned int kNumCh = 7;
bool setup(BelaContext *context, void *userData)
{
// Set the mode of digital pins
for(unsigned int c = 0; c < kNumCh; ++c)
{
pinMode(context, 0, c, INPUT);
pinMode(context, 0, c + kNumCh, OUTPUT);
}
return true;
}
void render(BelaContext *context, void *userData)
{
for(unsigned int n = 0; n < context->digitalFrames; ++n)
{
static unsigned int count = 0;
for(unsigned int c = 0; c < kNumCh; ++c)
{
bool val = digitalRead(context, n, c);
if(10000 == count)
{
rt_printf("%1d ", val);
}
digitalWriteOnce(context, n, c + kNumCh, val);
}
if(10000 == count)
{
rt_printf("\n");
count = 0;
}
count++;
}
}
void cleanup(BelaContext *context, void *userData)
{
}
this should print the values of the first 6 digital inputs (D0 to D6) and echo each of them to out n + 7, e.g.: D0 in -> D7 out, D1 in -> D8 out etc , which in my understanding is what your patch was trying to do. This should help you figure out whether there is a wiring issue or a Pd issue.