i have 8 arduinos (actually jeenodes) which i need to flash with the
same code but each arduino will have a line defining it's own numeric
node identifier in the range 1-8.
For example, #define NODE_ID 3
I am looking for a fool-proof, paranoid-proof way of doing this. I
dont care which arduino gets which NODE_ID value as long as no two
arduino's get the same NODE_ID value. What i am thinking i want to
happen is each time i flash an arduino, the NODE_ID is incremented and
if the value exceeds 8 then it should wrap around back to value 1.
This way, even if i stop flashing the arduinos for whatever reason
(code typo, beer-time, etc) i can pick up where i left off and as long
as i flash all 8 arduinos, they'll all have different NODE_ID values.
Is m4 scripting overkill here? Is there a way to tie in m4 to the
arduino 022 IDE or will i need to go the command-line route?
--
-m.a. perez
Sometimes I need to remember to "take a good, hard look at my first
revision and just say to myself, 'gloves'" :D
http://thedailywtf.com/Articles/Classic-WTF-The-Complicators-Gloves.aspx
--
-m.a. perez