Look up a board pin number and return BCM_line and line_name
Pin number is the physical board of the Raspberry pi.
Arguments
- pin_number
The pin as found on the Raspberry Pi board. Numbered from 1 to 40.
Value
a named vector.
bcm_line = broadcom line connected to this pin
pin_name = broadcom name such as RXD1 or GPIO21
Details
This checks for a valid range of pins (1:40) and for valid input/output lines. This prevents trying to read a 3.3v or ground line.
Examples
if (FALSE) { # is.rpi()
}