AllenI:
However from my original question, to add on/off control for a white led strip, should I add the code to the void loop() how I have it now or should I make it its own function?
What makes you think it needs it's own function?
There are two primary reasons to put code inside a function:
- Re-usability
- Break up larger code sections in to smaller, easier to follow functions
Does putting what you're trying to accomplish in a function achieve one of these two?