Why didn't you post your code as you did in your very first post on this forum in 2016? Using code tags!
Secondly, the part before setup is important! Because it probably will tell us that one of those output pins is pin 13. Now we have to guess (the CAPACITANCE_CHARGE_PIN ??).
If it's pin 13, learn to live with it if you don't want to modify (or get rid of) the bootloader. Only use it as an indicator, don't try to control stuff with it.
And this might be very obvious to you but not to me; why do you use analogWrite if you only write 255 or 0? You could just as well have used digitalWrite for that (what analogWrite does as well if you pass 255 or 0).