Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is my version that I have now tested a few workouts.
I am not yet completely satisfied because a set the speed can take quite a bit longer.
So from 6 km/h to 12 km/h are with me, in 0.1 steps, 60 keystrokes a 400 ms. So over 24 seconds.
Although the treadmill accelerates anyway not soo fast but the time seems to me still very long. But maybe that is not wrong.
I have already thought about how I can do it differently.
Then it turned out that my treadmill doesn't like it when two buttons are pressed at the same time. Therefore, I have now protected the critical section with a semaphore. But it does not make it faster.
Unfortunately I had to reassign the pin numbers because the previous pins do not exist on my system (RasPi B2). The new GPIO pins are available on all boards.
#525