button module

class button.Button(pin, invert=False)[source]

Wrap a button to make it easier to use

Parameters:
  • pin – The pin the button is attached to
  • invert – Is the pin inverted
down

Is the pin down

Returns:Pin is down
up

Is the pin up

Returns:Pin is up