Nothing special
Sub Process_Globals
Public Serial1 As Serial
'Define the motor pins
Private motor_1A, motor_2A As Pin
'Pin numbers
Private const motor_1A_port As Byte = 26
Private const motor_2A_port As Byte = 25
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
motor_1A.Initialize(motor_1A_port, motor_1A.MODE_OUTPUT) 'Set motor pin 1 as output
motor_2A.Initialize(motor_2A_port, motor_2A.MODE_OUTPUT) 'Set motor pin 2 as output
...
Just note for any programming: the thing that depends on the external conditions (user, hardware circuit diagram, MCU model, OS kind, settings... so it is variable) is to be declared as ... a variable. Or constant value like here.
For easy reading\searching\updating the project.
It's not required, but it's very important rule. The more complex project is, the much important.