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.