PiTraffic

PiTraffic

new PiTraffic(_optionsopt)

Source:
Represents the Low Voltage Labs PI-TRAFFIC vertical traffic lights board when attached to GPIO pins 9, 10, and 11. There's no need to specify the pins if the PI-TRAFFIC is connected to the default pins (9, 10, 11).
Parameters:
Name Type Attributes Description
_options Object <optional>
Device Options: * pwm: default: false. If true, creates PWMLED instances, else LED. * initial_value: default: false. If false, all LEDs will be off initially, if true the device will be switched on initialled.

Extends