We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I understand that if you want to be able to use variables globally you have to declare them at the top of the program. If you declare them inside a method they can only be used inside that method.
What I dont understand is when/where I should initialize variables, whether there are conventions regarding that. Should I initialize them in the first method that uses them, or in setup() or at the top?