gpio#

class platypush.message.event.gpio.GPIOEvent(pin: int | str, value: int, *args, **kwargs)[source]#

Bases: Event

Event triggered when the value on a GPIO PIN changes.

__init__(pin: int | str, value: int, *args, **kwargs)[source]#
Parameters:
  • pin – PIN number or name.

  • value – Current value of the PIN.