RIOTOUS IO Example

Step 2 is alot to read and understand so if you are either using a generic PIC16 device (such as the PIC16F1516) or the RIOTOUS devboard then the code below should suffice!