B4X:
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
Public timer1 As Timer
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
timer1.Initialize("timer1",1000)
timer1.Enabled = True
Log("AppStart")
End Sub
Sub timer1_Tick
Log("timer")
End Sub
Error:
B4R version: 1.00 BETA 1
Parsing code. (0.00s)
Compiling code. Error
Error compiling program.
Error description: Sub not found: timer1
Occurred on line: 16
timer1.Initialize("timer1",1000)
Word: timer1
16 is : timer1.Initialize("timer1",1000)