Works with Arduino Due

Updated to work with Arduino Due