Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi5 not supported for timing #14

Open
davidfsmith opened this issue Jan 4, 2024 · 0 comments
Open

RPi5 not supported for timing #14

davidfsmith opened this issue Jan 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@davidfsmith
Copy link
Contributor

Due to changes with the way the GPIO is connected on the latest version of the Raspberry Pi (5) the existing timer code leaderboard-timer/timer.js doesn't work with the timing board.

There are a couple of options

  1. Do nothing and hope that the library rpi-gpio or its dependency epoll are updated to support the RPi5
  2. Look to change the code to use GIPO Zero

Example code detecting "laps" from a timing board that works on both an RPi4 and an RPi5

#!/usr/bin/python3

from gpiozero import Button
from signal import pause

def logLap():
    print('lap')

pin1 = Button(17)
pin2 = Button(27)

pin1.when_pressed = logLap
pin2.when_pressed = logLap

pause()
@davidfsmith davidfsmith added the bug Something isn't working label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant