GPIO access help | Thales IoT Developer Community
March 24, 2016 - 1:02pm, 2256 views
I have been trying to access my GPIO pin (GPIO7,GPI10)on the EHSx6 Terminal.
Here is a sample of the code:
inPins = new Vector();
inPins.addElement("GPIO7");
inPins.addElement("GPIO10");
try {
inPort = new InPort (inPins);
} catch (IOException ex) {
ex.printStackTrace();
}
This code rases an exception: 'java.io.IOException: resource used by other component'
If I take out thr line 'inPins.addElement("GPIO10");' then I dont get the exception.
any ideas?
Thanks,
Kabir
Hi Kabir,
if you check DataSheet, there is no GPIO10. Here is the picture of available GPIOs:
Regards,
Jure
Thankyou!, my silly mistake.