If I have code that says (example only)
Quote:
if(rc_dig_in01==1)
#define PROG1
else if(rc_dig_in02==1)
#define PROG2
#ifdef PROG1
printf("Hello, world.");
#endif
#ifdef PROG2
printf("FIRST Robotics");
#endif
|
Will the printf's change when i flip either of the switches? Basically, my question is if code between #ifdef/#endif is loaded onto the robot, and whether or not variables can be defined on the fly, based on switch input.
Thank you in advance,