Hi,
I've been trying to get .AddListener to work and I can't do it, probably something I'm doing or rather not doing.
I have a very simple bit of code.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Any thoughts of what I might be doing wrong?
Many thanks
			
			I've been trying to get .AddListener to work and I can't do it, probably something I'm doing or rather not doing.
I have a very simple bit of code.
			
				B4X:
			
		
		
		Sub Process_Globals
    Public Serial1 As Serial
    Private encSWPin As Pin
End Sub
Sub Changed ()
    Log ("Listener Switch Changed")       
End Sub
Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    encSWPin.Initialize (12,encSWPin.MODE_INPUT_PULLUP)
    encSWPin.AddListener("Changed")
end SubAny thoughts of what I might be doing wrong?
Many thanks
 
				 
 
		 
						
					 
 
		 
 
		 
 
		 
 
		