This message was posted on behalf of Intel Corporation
What have you tried so far? Are you able to run the examples provided in there? If so, why don't you try to modify one these (the one that suits you better)? If you include the mraa library and add you part of the code and then compile it adding mraa (using the option -lmraa if you are using C/C++), you should be able to adapt the code to your need.
I have figured out a pretty simple solution that seems to work fine. I was able to simply add the mraa library path to the LIBS setting in the make file.