Currently pinModeAltmode argument is checked in (WPI_MODE_PINS, WPI_MODE_PHYS, WPI_MODE_GPIO) while it should be checked in (FSEL_INPT, FSEL_OUTP, FSEL_ALT0, FSEL_ALT1, FSEL_ALT2, FSEL_ALT3, FSEL_ALT4, FSEL_ALT5). DOCUMENTATION confirms this:
pinModeAlt(pin, mode)
>= 1.0.0
This is an un-documented special to let you set any pin to any mode.
Currently
pinModeAlt
mode
argument is checked in(WPI_MODE_PINS, WPI_MODE_PHYS, WPI_MODE_GPIO)
while it should be checked in(FSEL_INPT, FSEL_OUTP, FSEL_ALT0, FSEL_ALT1, FSEL_ALT2, FSEL_ALT3, FSEL_ALT4, FSEL_ALT5)
.DOCUMENTATION
confirms this:pinModeAlt(pin, mode)
>= 1.0.0
This is an un-documented special to let you set any pin to any mode.
mode
can be one of the following values:FSEL_INPT
>= 2.1.0
FSEL_OUTP
>= 2.1.0
FSEL_ALT0
>= 2.1.0
FSEL_ALT1
>= 2.1.0
FSEL_ALT2
>= 2.1.0
FSEL_ALT3
>= 2.1.0
FSEL_ALT4
>= 2.1.0
FSEL_ALT5
>= 2.1.0