public class Pin
extends java.lang.Object
implements java.io.Serializable
All those numberings can easily be used with this Raspoid Pin abstraction.
Sources:
Modifier and Type | Method and Description |
---|---|
int |
getBCMNb()
Returns the BCM number corresponding to this pin.
|
java.lang.String |
getName()
Get the name of this pin.
|
int |
getPhysicalNb()
Returns the physical number corresponding to this pin.
|
int |
getWiringPiNb()
Returns the WiringPi number corresponding to this pin.
|
java.lang.String |
toString() |
public static final Pin PHYSICAL_01
The 3v3, 3.3 volt, supply pin on the Pi has a max available current of about 50 mA. Enough to power a couple of LEDs or a microprocessor, but not much more. You should generally use the 5v supply, coupled with a 3v3 regulator for 3.3v projects.
public static final Pin PHYSICAL_02
The 5v power pins are connected directly to the Pi's power input and will capably provide the full current of your mains adaptor, less that used by the Pi itself.
public static final Pin PHYSICAL_03
SDA (i2c Data) is one of the i2c pins on the Pi. SDA includes a fixed, 1.8 kohms pull-up to 3.3v, which means this pin is not suitable for use as a general purpose IO where no pullup resistor is desired.
public static final Pin BCM_02
PHYSICAL_03
public static final Pin WIRING_PI_08
PHYSICAL_03
public static final Pin PHYSICAL_04
The 5v power pins are connected directly to the Pi's power input and will capably provide the full current of your mains adaptor, less that used by the Pi itself.
public static final Pin PHYSICAL_05
SCL (i2c Clock) is one of the i2c pins on the Pi. SCL includes a fixed, 1.8 kohms pull-up to 3.3v, which means this pin is not suitable for use as a general purpose IO where no pullup resistor is desired.
public static final Pin BCM_03
PHYSICAL_05
public static final Pin WIRING_PI_09
PHYSICAL_05
public static final Pin PHYSICAL_06
The Ground pins on the Raspberry Pi are all electrically connected, so it doesn't matter which one you use if you're wiring up a voltage supply.
Uses 8 GPIO pins.public static final Pin PHYSICAL_09
PHYSICAL_06
public static final Pin PHYSICAL_14
PHYSICAL_06
public static final Pin PHYSICAL_20
PHYSICAL_06
public static final Pin PHYSICAL_25
PHYSICAL_06
public static final Pin PHYSICAL_30
PHYSICAL_06
public static final Pin PHYSICAL_34
PHYSICAL_06
public static final Pin PHYSICAL_39
PHYSICAL_06
public static final Pin PHYSICAL_07
public static final Pin BCM_04
PHYSICAL_07
public static final Pin WIRING_PI_07
PHYSICAL_07
public static final Pin PHYSICAL_08
This pin doubles up as the UART transmit pin, TXD. It's also commonly known as "Serial" and, by default, will output a Console from your Pi that, with a suitable Serial cable, you can use to control your Pi via the command-line.
The UART pins are useful for setting up a "headless" Pi (a Pi without a screen) and getting it connected to a network.
public static final Pin BCM_14
PHYSICAL_08
public static final Pin WIRING_PI_15
PHYSICAL_08
public static final Pin PHYSICAL_10
This pin doubles up as the UART recieve pin, RXD. It's also commonly known as "Serial" and, by default, will output a Console from your Pi that, with a suitable Serial cable, you can use to control your Pi via the command-line.
The UART pins are useful for setting up a "headless" Pi (a Pi without a screen) and getting it connected to a network.
public static final Pin BCM_15
PHYSICAL_10
public static final Pin WIRING_PI_16
PHYSICAL_10
public static final Pin PHYSICAL_11
public static final Pin BCM_17
PHYSICAL_11
public static final Pin WIRING_PI_00
PHYSICAL_11
public static final Pin PHYSICAL_12
The PWM0 output of BCM 18 is particularly useful, in combination with some fast, direct memory access trickery, for driving tricky devices with very specific timings.
public static final Pin BCM_18
PHYSICAL_12
public static final Pin WIRING_PI_01
PHYSICAL_12
public static final Pin PHYSICAL_13
public static final Pin BCM_27
PHYSICAL_13
public static final Pin WIRING_PI_02
PHYSICAL_13
public static final Pin PHYSICAL_15
public static final Pin BCM_22
PHYSICAL_15
public static final Pin WIRING_PI_03
PHYSICAL_15
public static final Pin PHYSICAL_16
public static final Pin BCM_23
PHYSICAL_16
public static final Pin WIRING_PI_04
PHYSICAL_16
public static final Pin PHYSICAL_17
The 3v3, 3.3 volt, supply pin on the Pi has a max available current of about 50 mA. Enough to power a couple of LEDs or a microprocessor, but not much more. You should generally use the 5v supply, coupled with a 3v3 regulator for 3.3v projects.
public static final Pin PHYSICAL_18
public static final Pin BCM_24
PHYSICAL_18
public static final Pin WIRING_PI_05
PHYSICAL_18
public static final Pin PHYSICAL_19
public static final Pin BCM_10
PHYSICAL_19
public static final Pin WIRING_PI_12
PHYSICAL_19
public static final Pin PHYSICAL_21
public static final Pin BCM_09
PHYSICAL_21
public static final Pin WIRING_PI_13
PHYSICAL_21
public static final Pin PHYSICAL_22
public static final Pin BCM_25
PHYSICAL_22
public static final Pin WIRING_PI_06
PHYSICAL_22
public static final Pin PHYSICAL_23
public static final Pin BCM_11
PHYSICAL_23
public static final Pin WIRING_PI_14
PHYSICAL_23
public static final Pin PHYSICAL_24
public static final Pin BCM_08
PHYSICAL_24
public static final Pin WIRING_PI_10
PHYSICAL_24
public static final Pin PHYSICAL_26
public static final Pin BCM_07
PHYSICAL_26
public static final Pin WIRING_PI_11
PHYSICAL_26
public static final Pin PHYSICAL_27
public static final Pin BCM_00
PHYSICAL_27
public static final Pin WIRING_PI_30
PHYSICAL_27
public static final Pin PHYSICAL_28
public static final Pin BCM_01
PHYSICAL_28
public static final Pin WIRING_PI_31
PHYSICAL_28
public static final Pin PHYSICAL_29
public static final Pin BCM_05
PHYSICAL_29
public static final Pin WIRING_PI_21
PHYSICAL_29
public static final Pin PHYSICAL_31
public static final Pin BCM_06
PHYSICAL_31
public static final Pin WIRING_PI_22
PHYSICAL_31
public static final Pin PHYSICAL_32
public static final Pin BCM_12
PHYSICAL_32
public static final Pin WIRING_PI_26
PHYSICAL_32
public static final Pin PHYSICAL_33
public static final Pin BCM_13
PHYSICAL_33
public static final Pin WIRING_PI_23
PHYSICAL_33
public static final Pin PHYSICAL_35
public static final Pin BCM_19
PHYSICAL_35
public static final Pin WIRING_PI_24
PHYSICAL_35
public static final Pin PHYSICAL_36
public static final Pin BCM_16
PHYSICAL_36
public static final Pin WIRING_PI_27
PHYSICAL_36
public static final Pin PHYSICAL_37
public static final Pin BCM_26
PHYSICAL_37
public static final Pin WIRING_PI_25
PHYSICAL_37
public static final Pin PHYSICAL_38
public static final Pin BCM_20
PHYSICAL_38
public static final Pin WIRING_PI_28
PHYSICAL_38
public static final Pin PHYSICAL_40
public static final Pin BCM_21
PHYSICAL_40
public static final Pin WIRING_PI_29
PHYSICAL_40
public java.lang.String getName()
public int getPhysicalNb()
public int getWiringPiNb()
public int getBCMNb()
public java.lang.String toString()
toString
in class java.lang.Object