On 12/27/2017 02:04 AM, [email protected] wrote:
I’m thinking about polling the “position” entry in the filesystem using a timer 
thread instead of using interrupts.

My reasoning for this is that the rotary knob will be changed by hand and I do 
not expect to update the GUI cursors that this knob will control any faster 
than 100ms.

So a 100ms poll really shouldn’t load my cpu too much, any reason I shouldn’t 
use this approach? Have I missed anything?

Thanks

Scott

The driver uses the linux input subsystem, so it will appear as a relative axis. Basically, if you have two knobs, linux will think it is a mouse with no buttons. You can use libinput or any libevdev or any other library that knows about linux input devices.

--
For more options, visit http://beagleboard.org/discuss
--- You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/3920d17b-be4e-90d0-a2e1-99081cb52a7f%40lechnology.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to