A neat way to test the CPU would be something like this, but DUE is not declared. How to do this?
#if defined(DUE)
#define AAA
#else
#define BBB
#endif
A neat way to test the CPU would be something like this, but DUE is not declared. How to do this?
#if defined(DUE)
#define AAA
#else
#define BBB
#endif
This seems to work
// #define (__SAM3X8E__)
#if defined(__SAM3X8E__)
char textt[]="due";
#else
char textt[]="enotdue";
#endif
void setup() {
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(textt);
}
I saw a warning about = and ; in defines, luckily I wrote the program first, because it seems to work.
Edit
I saw it here
But there were other hits too