mateuscsc
Posts: 1
Joined: Tue Jan 24, 2017 1:12 am

Serial Interrupt

Tue Jan 24, 2017 1:18 am

Hi,

I'm new to programming in java for pi. I would like to know how to instantiate an interrupt, using pi4j for serial port.

Sorry my english

User avatar
clicky
Posts: 501
Joined: Thu Oct 25, 2012 7:34 am

Re: Serial Interrupt

Tue Jan 24, 2017 8:18 am

Just for my curiosity - why would you want to do so?
It should be enough for you to rely on drivers that are already there and just do blocked IO on serial port through pi4j. You can always do that IO in separate thread so it won't take any CPU. Indirectly you would, with it, use interrupt but without any hassle doing any low level software/hardware stuff...

Return to “Java”