MCPcopy Index your code
hub / github.com/benfry/processing4 / checkValidPin

Method checkValidPin

java/libraries/io/src/processing/io/GPIO.java:178–182  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 6

digitalReadMethod · 0.95
digitalWriteMethod · 0.95
enableInterruptMethod · 0.95
pinModeMethod · 0.95
releasePinMethod · 0.95
waitForInterruptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected