Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Dim n As Int = 0
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
Do While True
n=n+1
Log(n)
Loop
End Sub
Sub teste(nn) As Int
Return nn
End Sub