I have two arduino boards doing the same thing, but use different pin.
I want to use same code (only the pin definition headers are different) in these projects
To distinguish these projects, I already wrote some data in eeprom.
So, is anyway to decide which header file need to include by reading eeprom data?
I want to finish this function in header file.
thanks a lot for the help
/* to do data = eeprom.read() if(date == project1) #define PROJECT1 if(data == project2) #define PROJECT2 */ #ifdef PROJECT1 #include<project1.h> #endif #ifdef PROJECT2 #include<project2.h> #endif
**__ <strong>**#define LED_PIN 13**</strong> __**
**__</strong></strong> <strong><strong><strong>**#define LED_PIN 12**</strong></strong></strong> <strong><strong>__**