Go Down

Topic: How to test if the CPU is DUE or not (Read 206 times) previous topic - next topic


A neat way to test the CPU would be something like this, but DUE is not declared. How to do this?

Code: [Select]
#if defined(DUE)
  #define AAA
  #define BBB


Feb 07, 2016, 05:46 pm Last Edit: Feb 07, 2016, 05:48 pm by LMI Reason: The missing link
This seems to work
Code: [Select]
//  #define (__SAM3X8E__)
  #if defined(__SAM3X8E__)
  char textt[]="due";
  char textt[]="enotdue";
void setup() {


void loop() {
  // put your main code here, to run repeatedly:

I saw a warning about = and ; in defines, luckily I wrote the program first, because it seems to work.

I saw it here
But there were other hits too

Go Up