some minor adaptations to Arduino Due
(still incomplete)