You can create your on function with void Function() command
You can read about it here https://www.arduino.cc/en/Reference/FunctionDeclaration but best for pinMode is in the setup()
You can create your on function with void Function() command
You can read about it here https://www.arduino.cc/en/Reference/FunctionDeclaration but best for pinMode is in the setup()