gpio module

Configure, setup, and teardown, of GPIO.

gpio.init_gpio(callback_functions)
Parameters

callback_functions – a list containing all callback functions, one for each pin.

  • Sets GPIO warnings to True

  • Sets GPIO mode to BOARD

  • For each pin in pins, sets pin as an input that pulls low, and calls the given callback function on the falling edge.

gpio.pins = [15, 16]

list containing all connected board input pins.

gpio.stop_gpio()

Cleanup and shutdown all GPIO.