* @param PIN
* @return the current value of the given Pin
*/
public Value getDigital(final Digital PIN) {
initPin(PIN, Direction.IN);
Value value = Value.LOW;
try (FileInputStream in = new FileInputStream("/sys/class/gpio/gpio" + PIN.gpio + "/value")) {
value = in.read() == 1 ? Value.HIGH : Value.LOW;
} catch (IOException exception) {
System.out.println(exception);
}