Results 1 to 2 of 2
Hi,
I'm working on a Java software for using the microscope QX3 in the primary school and I need a way to figure out when the user press the button ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-29-2011 #1Just Joined!
- Join Date
- Dec 2011
- Posts
- 1
Button on Microscope QX3
Hi,
I'm working on a Java software for using the microscope QX3 in the primary school and I need a way to figure out when the user press the button on the microscope. I can't get this from V4L2 library, so reading the CPiA(1) - gspca driver, I found the var button on the struct qx3:
Code:struct { /* Intel QX3 specific data */ u8 qx3_detected; /* a QX3 is present */ u8 toplight; /* top light lit , R/W */ u8 bottomlight; /* bottom light lit, R/W */ u8 button; /* snapshot button pressed (R/O) */ u8 cradled; /* microscope is in cradle (R/O) */ } qx3;
Could someone kindly tell me if there is a way to read this value?
Thank you for your time.
- 01-07-2012 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,156
Well, this is a C structure, not a Java one, so you probably need to either write a C/C++ program that can get this data and send it to your java application, or you can embed it into your java app and access it via a JNI function call. Unfortunately, since I am not familiar with this API I don't know what more to suggest, although remember that Google is your friend!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
