Have loadable scenarios for the same hardwarw?

Hey all,

I want to know if I can setup an Arduino with my desired hardware and from another system, or on boot, choose which code I want loaded?

Basically, its two scenarios/sequences of code for the same hardware independent of one another.

This is so I can have two different puzzles attached to the same setup, allowing me to choose which code I want to run, hence which puzzle I want active.

There would be other supporting information to get what is needed, but basically, one scenario, you enter code 0000, and the other scenario you enter code 0001. You select which scenario and hence solution from your HUB or on boot.

I don't want this to be 'IF' and 'FOR' statements, I want this to be standalone code (scenarios) on the same arduino, allowing this state to be loaded across a series of Arudino's from a hub, giving me modularity.

Apologies if this is covered somewhere else.
Any advice would be greatly appreciated.

Cheers,
Ryan

You can't have totally independent sketches loaded like that.

You can put your scenarios into different files and then compile one sketch using all the files. Either use the #include syntax or just put all the files into the one folder and compile that sketch.

Do you have more than one person editing these scenarios? Then consider using a source control system like Subversion or Git.