private Pin getPin ( ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( " Pin Id > " + iled ) ; } Pin ret = getPinPerFieldName ( ) ; if ( ret == null ) { ret = getPinPerPinAddress ( ) ; if ( ret == null ) { ret = getPinPerPinName ( ) ; } } if ( ret == null ) { throw new IllegalArgumentException ( "Cannot find gpio [" + this . iled + "] " ) ; } return ret ; }
Hack to retrieve the correct Pin from RaspiPin . class lib