Skip to content

[QUESTION] Does this support Waveshare 2.7" HAT on Raspberry Pi? #84

@philipsd6

Description

@philipsd6

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 World

Your code uses gpiozero too and seems to work similarly, but I've been unable to have the following work:

Physical Button: Key 1

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

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions