change the variables through a (stroboscope) program

High everybody, I wrote this program which controls a stroboscope with adjustable time, frequency, and intensity.

My variables are stored between "#ifdef name" and "#endif", so I can select them using "#define name".

I would like to change (for example) " TEST" to "RED_PILL", during the program, but I don't know how.

Maybe using and other for loop?

the program is bellow:

MORPHEE.ino (8.66 KB)

Sorry I cannot read your sketch at the moment but I think that you are not understanding the purpose and use of #ifdef.

#ifdef etc. are preprocessor directives. They are used to conditionally compile different sections of code. You might do this for example if you wanted to compile essentially the same program but for use on two different operating systems.

If you want to change the value of variables within a program then you just assign it a new value. If you have lots of variables then you might store them in a two dimensional array and then swap between using one column of variables and the other.

I've deleted your other cross post @jules2001.

Cross posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes writing a detailed answer on this thread, without knowing that someone else already did the same in the other thread.

Repeated cross posting will result in a suspension from the forum.

In the future, please take some time to pick the forum section that best suits the topic of your question and then only post once to that forum section. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum section. It contains a lot of other useful information. Please read it.

Thanks for your cooperation.