New example

New example code demonstrates a sliding on/off button
Updated to work with Arduino Due

Changes to support Arduino Due
Merge branch 'Due'