Arduino Due conditional compilation constant for custom library -


i'm writing custom library , working correctly on arduino uno. i've got hands on arduino due , need define board specific pin constants.

i know boards can through #ifdef directive using io constants defined in \\arduino-1.5.2\hardware\tools\avr\avr\include\avr\io.h. instance:

#if defined (__avr_atmega128__)     //do specific #endif 

does know correct constant use due?

i typically use ...

#ifndef __avr__ // special non avr8's // ... #endif 

where believe use...

#ifdef _sam3xa_ // special due's sam3xa // ... #endif 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -