LDR_Read_Timer.Initialize("LDR_Read_Timer_Tick",50)
LDR_Read_Timer.Enabled = False
Rotate_Timer.Initialize("Rotation_Timer_Tick",50)
Rotate_Timer.Enabled=False
StopWatch_Timer.Initialize("Stopwatch_Timer_Tick",10)
StopWatch_Timer.Enabled=False
Screen_Timer.Initialize("Screentimer_Tick", 1500)
Screen_Timer.Enabled = False
Delay (10) 'Without this delay we cannot get past the next RunNative ("setup",Null) command. I can live with that.
Log ("Running Setup")
RunNative ("setup",Null)
Log ("Running drawNTD started")
RunNative ("drawNTD",Null)
Log ("Starting 'Waiting for' screen")
Screen_Timer.Enabled=True
Delay (8000) 'Enough time to see that the screen is displayed correctly which it is
Log ("Enabling LDR Timer to test for screen corruption")
LDR_Read_Timer.Enabled=True 'At this point the screen corrupts