Drivers for taxi sign hardware

taxisign_driver

class taxisign_driver.Taxisign[source]

Bases: object

Taxi sign representation.

For controlling a Taxi sign from a Beaglebone. This is basically the Beaglebone output_pin_driver, together with hardware-describing constants.

Module constants describing the hardware:
  • GPIO_NUMBER (int): GPIO number for pin connected to relay driver circuit.
  • IS_INVERTED (bool): Set to True if the relay and its driver circuit are connected such that the taxi sign turns off for GPIO=high.
* state

bool

Set to True to turn on the taxi sign.

loop()[source]
state

output_pin_driver

class output_pin_driver.Outputpin(GPIO_number)[source]

Bases: object

GPIO output pin representation.

For controlling a GPIO output pin on a Beaglebone. Note that root permissions are required.

* state

bool

Turn on the GPIO output pin if the value is True.

state