-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Plugin Version
0.6.1
Question
The Waveshare 2.7" HAT on Raspberry Pi has an e-paper display, as well as four buttons, which operate on GPIO pins 5, 6, 13, 19. From a Python session, I'm able to use button 1 like this:
from gpiozero import Button
def handle_key1():
print("Hello World")
btn = Button(5)
btn.when_pressed = handle_key1
# Then I press the button a few times...
Hello World
Hello World
Hello WorldYour code uses gpiozero too and seems to work similarly, but I've been unable to have the following work:
Am I doing something wrong?
Additional context
In a shell session, as the same user OctoPrint is running as, I am able to call wall "hello world" and see the broadcast message in my terminal.
Here's an example project for this hat: RaneWallin/hello_epaper3.py
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested
