Checks if the GPIO pin number can be valid Board-specific classes, such as RPI, assign -1 to pins that carry power, ground and the like. @param pin GPIO pin
(int pin)
| 160 | * @param pin GPIO pin |
| 161 | */ |
| 162 | protected static void checkValidPin(int pin) { |
| 163 | if (pin < 0) { |
| 164 | throw new RuntimeException("Operation not supported on this pin"); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | |
| 169 | /** |
no outgoing calls
no test coverage detected