- Edited
I am trying to use Pepper to run some C++ code.
When I try to use digitalWrite(): 15, to use the left button - as specified in https://github.com/BelaPlatform/bela-pepper/wiki/Pin-numbering), I get the following error:
no matching function for call to 'digitalWrite' column: 20, line: 6
this is my code:
#include <Bela.h>
bool setup(BelaContext *context, void *userData)
{
bool leftButton = digitalWrite(): 14;
return true;
}
void render(BelaContext *context, void *userData)
{
}
void cleanup(BelaContext *context, void *userData)
{
}
Am I missing something?
Also: I can not find any examples of Pepper code in C++ - I think a few of these could be quite helpful : )