After you fix problems like the ones above don't use int variables when byte would be big enough and declare variables as const if they are never going to change, such as pin numbers and write a function to turn the pairs of LEDs on and off instead of repeating code
Do you have a function F that is doing something clever with a char array? Or are you declaring it implicitly on the fly? I am amazed (but not disbelieving) that this would be more efficient because it would suggest to me that the compiler should just do whatever F does all the time...
Do you have a function F that is doing something clever with a char array? Or are you declaring it implicitly on the fly? I am amazed (but not disbelieving) that this would be more efficient because it would suggest to me that the compiler should just do whatever F does all the time...
F(string) is a compiler macro introduced in arduino version 1.0. It tells the compiler to leave the string (array of chars) in flash memory instead of allocating space in the sram region.