public final class Pi2 extends ThePi.ComBeh
Pi2
– seldomly used – was the first extension of
Pi1
adding an extra 8 pin IO connector (labelled P5) to
Pi1
's 26 pin connector. Here, for Pi2
only, we assign
pin numbers 31 to 38 to P5's pins 1 to 8. On a Pi3
, 0, 4, of
course pins 31..38 belong to the 40 pin IO connector (P1). Pi1
,
Pi3
,
ClientPigpiod
ThePi.ComBeh, ThePi.Impl, ThePi.Port
Modifier and Type | Field and Description |
---|---|
static int |
P5_C3
8 pin connector P5 GPIO assignment mapping.
|
static int |
P5_C4 |
static int |
P5_C5 |
static int |
P5_C6 |
static int |
PIN03
26 pin connector GPIO assignment mapping.
|
static int |
PIN05 |
static int |
PIN07 |
static int |
PIN08 |
static int |
PIN10 |
static int |
PIN11 |
static int |
PIN12 |
static int |
PIN13 |
static int |
PIN15 |
static int |
PIN16 |
static int |
PIN18 |
static int |
PIN19 |
static int |
PIN21 |
static int |
PIN22 |
static int |
PIN23 |
static int |
PIN24 |
static int |
PIN26 |
static int |
PIN3 |
static int |
PIN33 |
static int |
PIN34 |
static int |
PIN35 |
static int |
PIN36 |
static int |
PIN4 |
static int |
PIN7 |
static int |
PIN8 |
type
defaultHost
GPIO_INP, GPIO_OUT, GPIOmax, GPIOmin, GPIOutM, H1, HI, L0, LO, PI_PUD_DOWN, PI_PUD_DT, PI_PUD_KP, PI_PUD_OFF, PI_PUD_UP, PIN0, PIN00, PIN01, PIN02, PIN04, PIN06, PIN09, PIN0V, PIN1, PIN14, PIN17, PIN2, PIN20, PIN25, PIN3V, PIN5V, PIN6, PIN9, PINig, PINix, PIO_ALT0, PIO_ALT1, PIO_ALT2, PIO_ALT3, PIO_ALT4, PIO_ALT5
AUTHOR, BLANK_STRING, cons, CONSOL_ENCODING, COPYRIGHT, D, D_NaN, D_NegInf, D_PosInf, EMPTY_INT_A, EMPTY_STRING, FILE_ENCODING, FRW_CLLD, FS, FSS, H, hasCons, HOST_IP, HOST_IPv4, HOST_NAME, INIT_ERROR, JAR_ENCODING, JH, JOB_DONE_OK, JRL, LOG_OUT_ERROR, M, MAIN_THREAD_EXC, NO_BYTES, NO_CLASSES, NO_DOUBLES, NO_OBJECTS, NO_PARS_ERROR, NO_STRINGS, NOT_WINDOWS, ON_PI, ONE_DAY, ONE_HOUR, ONE_LEAP_YEAR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OS, PROG_NAME, PROG_SHORT, PS, RUNTIME, S, SHY, UD, UL, UL_UR_da, UR
Modifier and Type | Method and Description |
---|---|
int |
gpio2pin(int gpio)
Pin number to GPIO number lookup.
|
int |
gpio4pin(int pin)
Pin number to GPIO number lookup.
|
static Pi2 |
make()
Make a Pi2 object with default settings.
|
static Pi2 |
make(String host,
int port,
int timeout)
Make a Pi2 object.
|
equals, hashCode, host, sockP, timeout, toString, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
gpio2String, gpio4pinChck, gpioMayOut, gpios4pins, gpios4pinsChck, make, pinDescr, portByGPIO, portByPin
public static final int PIN03
public static final int PIN05
public static final int PIN07
public static final int PIN08
public static final int PIN10
public static final int PIN11
public static final int PIN12
public static final int PIN13
public static final int PIN15
public static final int PIN16
public static final int PIN18
public static final int PIN19
public static final int PIN21
public static final int PIN22
public static final int PIN23
public static final int PIN24
public static final int PIN26
public static final int PIN3
public static final int PIN4
public static final int PIN7
public static final int PIN8
public static final int P5_C3
PiVals.PIN3V
), 2 is 5V (PiVals.PIN3V
) and 7 and 8 are
Ground (PiVals.PIN0V
). public static final int P5_C4
public static final int P5_C5
public static final int P5_C6
public static final int PIN33
public static final int PIN34
public static final int PIN35
public static final int PIN36
public final int gpio4pin(int pin)
pin
- 0, 1..26. 31.. 38 is the legal IO connector pin number
where 31..38 map connector P5 pins 1..8PiVals.PIN0V
, PiVals.PIN3V
,
PiVals.PIN5V
, PiVals.PINix
: undefined, i.e. illegal pin number
or PiVals.PINig
ignore for pin = 0public final int gpio2pin(int gpio)
gpio
- 0..26 GPIO number (eventually) available on the
Pi's 26 pin and 8 pin connectors.public static Pi2 make()