public final class Pi3 extends ThePi.ComBeh
Pi3
introduced the 40 pin IO connector – currently
the standard – also used by the Pi 4 and the Pi zero. Hence,
this type Pi3
represents the IO behaviour of all those modern
Paspberry Pis. Pi1
,
Pi2
,
ClientPigpiod
ThePi.ComBeh, ThePi.Impl, ThePi.Port
Modifier and Type | Field and Description |
---|---|
static int |
PIN03
40 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 |
PIN27 |
static int |
PIN28 |
static int |
PIN29 |
static int |
PIN3 |
static int |
PIN30 |
static int |
PIN31 |
static int |
PIN32 |
static int |
PIN33 |
static int |
PIN34 |
static int |
PIN35 |
static int |
PIN36 |
static int |
PIN37 |
static int |
PIN38 |
static int |
PIN39 |
static int |
PIN40 |
static int |
PIN5 |
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, PIN4, 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 Pi3 |
make(String host)
Make a Pi3 object for a given host.
|
static Pi3 |
make(String host,
int port,
int timeout,
int type)
Make a Pi3 object for Pi3, Pi or Pi0 (zero).
|
equals, hashCode, host, sockP, timeout, toString, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
gpio2String, gpio4pinChck, gpioMayOut, gpios4pins, gpios4pinsChck, 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 PIN27
public static final int PIN28
public static final int PIN29
public static final int PIN31
public static final int PIN32
public static final int PIN33
public static final int PIN35
public static final int PIN36
public static final int PIN37
public static final int PIN38
public static final int PIN40
public static final int PIN30
public static final int PIN34
public static final int PIN39
public static final int PIN3
public static final int PIN5
public static final int PIN7
public static final int PIN8
public final int gpio4pin(int pin)
pin
- 0, 1..40 is the legal IO connector pin numberPiVals.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 40 pin connector.public static Pi3 make(String host)
make(host, 0, 0, 3)
.host
- might be given as name "raspi67" if known to DNS or IP
address "192.168.178.67". null or empty will be
defaultHost
host
,
port 8888 and timeout 10000 (10s)public static Pi3 make(String host, int port, int timeout, int type)
type
- 3, 4 and 0 are accepted; all else returns nullport
- 20..65535 will be accepted; other values default to 8888timeout
- for socket connection in ms, 300..50000 will be accepted;
other values default to 10shost
,
(socket) port
, timeout
and
type
make(String)