Physical buttons on the frame with a function you can choose

Đang mở
#275 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, raspberry-pi
Lĩnh vực
embedded-iot

Hướng nghiên cứu

Start by resolving the dependency on #238 part 4-2 and reading how its scheduler commands are exposed. Then check the screen HAT pin usage mentioned in the issue before choosing GPIO pins; the payload names no files or tests to start from. Done means configurable short and long press actions work consistently with the scheduler controls, with the unresolved timing, bounce, wiring, and hardware testing decisions addressed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:core enhancement hardware

Idea from txoof (2026-10-11): one or two physical push buttons on the frame, wired to the Pi's GPIO pins, each with a function you can choose.

What it should do

  • Each button gets a function for a short press and one for a long press, set in the config file (and later in the web interface).
  • Suggested defaults: short press = Skip to next, long press = show the time (for example the fallback clock for one turn).
  • Other functions to choose from: Show now (a chosen plugin), Refresh, Dismiss alert, Try again now, nothing.
  • The functions use the scheduler commands added in M5 part 4, PR 4-2 (Skip, Show now, Refresh, Dismiss, Try again now), so the button and the web page behave the same.

To decide later

  • Which GPIO pins can be used, given the pins the screens already use (SPI and the busy/reset pins of IT8951 and Waveshare HATs).
  • How long a "long press" is, and whether a double press is useful.
  • Ignoring a button that bounces (sends several presses for one press) or is stuck down.
  • A wiring note in the docs (button between the pin and ground, internal pull-up).
  • Testing without real hardware: a fake button in tests, and a test marked hardware for the real one.

Depends on: #238 part 4-2 (scheduler controls).

Ngôn ngữ chính
Python
Star
205
Fork
18
Merge trung bình
3 giờ 49 phút
Pull request đã merge (30 ngày)
89

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của txoof/PaperPi

Tất cả issue của txoof/PaperPi

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.