WiringPi / WiringPi-Node

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

Fix for pinMode() in README #6

Closed MajorBreakfast closed 10 years ago

MajorBreakfast commented 10 years ago

It seems that these constants aren't exposed on wpi but on wpi.modes.

nekuz0r commented 10 years ago

INPUT, OUTPUT, PWM_OUTPUT, GPIO_CLOCK are exposed from wpi. wpi.modes is present for backward compatibility. See lib/exports.js from line 26 to 29.

nekuz0r commented 10 years ago

This patch didn't needed to be merged. It's not a real issue since wpi.INPUT, OUTPUT, ... constants exists. All it does is documenting a deprecated way to access those constants.