diff --git a/examples/7color/buttons.py b/examples/7color/buttons.py index 17e4278..494e6d7 100755 --- a/examples/7color/buttons.py +++ b/examples/7color/buttons.py @@ -50,9 +50,9 @@ # It receives one argument: the associated gpiod event object. def handle_button(event): index = OFFSETS.index(event.line_offset) - pin = BUTTONS[index] + gpio_number = BUTTONS[index] label = LABELS[index] - print(f"Button press detected on pin: {pin} label: {label}") + print(f"Button press detected on GPIO #{gpio_number} label: {label}") while True: