WiringPi / WiringPi-Node

Node.js bindings to wiringPi
336 stars 94 forks source link

pinModeAlt mode is checked in wrong ints #45

Closed NoHomey closed 8 years ago

NoHomey commented 8 years ago

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: