My question is a basic one regarding coding. I am trying to define a function/subroutine. What would the syntax of that be?
I want to use it to turn on a specific series of WS2812 LEDS. I thought If I could define a piece of code that would just switch them on I could call it in my main programme whenever I wanted.
Would this be defined in the Setup area?