M MbedAndroid Well-Known Member Licensed User Longtime User Sep 27, 2018 #1 You can attach a pininterrupt in Bj4 (for rasp via the 40 pins header) Code: Copy private Sub Cint_StateChange(State As Boolean) code..... end sub but is there a way to disattach a interrupt in the code? edit think i found a way just reinit the statement without a callback Code: Copy Cint.Initialize("", 1) 'GpioPinDigitalInput Last edited: Sep 27, 2018
You can attach a pininterrupt in Bj4 (for rasp via the 40 pins header) Code: Copy private Sub Cint_StateChange(State As Boolean) code..... end sub but is there a way to disattach a interrupt in the code? edit think i found a way just reinit the statement without a callback Code: Copy Cint.Initialize("", 1) 'GpioPinDigitalInput
M MbedAndroid Well-Known Member Licensed User Longtime User Sep 28, 2018 #2 mmm the solution doesnt work. Error in the report. Pin is already used. still need a way to disattach a pin Upvote 0
mmm the solution doesnt work. Error in the report. Pin is already used. still need a way to disattach a pin
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2018 #3 You can remove all listeners with: Code: Copy Dim jo As JavaObject = Cint jo.RunMethod("removeAllListeners", Null) Upvote 0
You can remove all listeners with: Code: Copy Dim jo As JavaObject = Cint jo.RunMethod("removeAllListeners", Null)