|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: type tInterruptHandler doesn't seem to exist
The "callback" version of requestInterrupts() was not fully implemented, but you should be able to use the synchronous version of requestInterrupts().
You can then have your interrupt handling code in a loop that first calls waitForInterrupt(). Roughly: digIn.requestInterrupts(); while (true) { // or some condition digIn.waitForInterrupt(300.0); // ...do your interrupt handling code... } digIn.cancelInterrupts(); That loop can be pushed off to another Java thread. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|