#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
Public Serial1 As Serial
Private iSel As Int
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
RunNative("firstbutton",Null)
Log("iSel=",iSel)
RunNative("secondbutton",Null)
Log("iSel=",iSel)
Log("That's it")
End Sub
Private Sub FirstCallThis
iSel=1
End Sub
Private Sub ThenCallThis
iSel=2
End Sub
#if C
void firstbutton (B4R::Object* o) { b4r_main::_firstcallthis();}
void secondbutton (B4R::Object* o) { b4r_main:: _thencallthis();}
#End if