pinMode(SDA, OUTPUT); does not work in DUE

I think maybe you should try #if defined(__SAM3X8E__) instead?

Regards,

Graham