MCPcopy Index your code
hub / github.com/processing/processing / checkValidPin

Method checkValidPin

java/libraries/io/src/processing/io/GPIO.java:162–166  ·  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

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

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