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)
| 176 | * @param pin GPIO pin |
| 177 | */ |
| 178 | protected static void checkValidPin(int pin) { |
| 179 | if (pin < 0) { |
| 180 | throw new RuntimeException("Operation not supported on this pin"); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | |
| 185 | /** |
no outgoing calls
no test coverage detected