-
Notifications
You must be signed in to change notification settings - Fork 293
Use diozero for GPIO #2171
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
Merged
samfreund
merged 45 commits into
PhotonVision:main
from
thatcomputerguy0101:diozero-gpio
Dec 12, 2025
Merged
Use diozero for GPIO #2171
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
7f5d403
Migrate GPIO control to diozero
thatcomputerguy0101 88b374c
Update documentation to reflect the use of diozero
thatcomputerguy0101 cf8683c
Remove custom gpio commands
thatcomputerguy0101 8a574c2
Update tests for diozero
thatcomputerguy0101 eedec14
Calculate brightness percentage as a floating point number
thatcomputerguy0101 5c5af2d
Make for loops consistent in VisionLED
thatcomputerguy0101 b4c1ffa
Deduplicate code in VisionLED.setINternal
thatcomputerguy0101 e00aaa1
Calculate brightness as a double
thatcomputerguy0101 d046ce9
Add custom GPIO diozero provider
thatcomputerguy0101 531c3ca
Synchronize ShellExec `doProcess` to prevent race condition on gobblers
thatcomputerguy0101 d90f001
Add license header to new files
thatcomputerguy0101 3c69052
Add missing fields to HardwareConfig string
thatcomputerguy0101 77cfd39
Fix usage of default device factory in native gpio test
thatcomputerguy0101 3176d23
Replace Arrays.asList with List.of
thatcomputerguy0101 1dcb5e1
Replace Closable with AutoClosable
thatcomputerguy0101 b4cf56a
Use coercion instead of casting
thatcomputerguy0101 76d48c3
Remove unused device name from Custom GPIO adapter
thatcomputerguy0101 8ad20a5
Fix ledBrightnessRange config naming in the docs
thatcomputerguy0101 18a11f2
Restore ledPWMFrequency option
thatcomputerguy0101 4f9a636
Fix VisionLED constructor in tests
thatcomputerguy0101 4d2a779
Remove old ledPWMRange option from LL2+ config
thatcomputerguy0101 a9fab73
Add configurable status LED polarity
thatcomputerguy0101 47915b0
Use custom blink task to reduce thread count
thatcomputerguy0101 2641219
Status LED refactor
thatcomputerguy0101 78409e5
Revert "Synchronize ShellExec `doProcess` to prevent race condition o…
thatcomputerguy0101 5d67ba8
Use a different ShellExec per thread for GPIO
thatcomputerguy0101 35e798c
Add comments to CustomDigitalInputOutputDevice.setMode
thatcomputerguy0101 34c2d56
Add documentation for GPIO pinout on Raspberry Pi platforms
thatcomputerguy0101 942e3fb
Clean up Custom GPIO member initialization
thatcomputerguy0101 7202492
Early return from updateStatus
thatcomputerguy0101 9750cf6
Use arrow case labels in StatusLED.updateLED
thatcomputerguy0101 0556cb9
Move member definition in StatusLED
thatcomputerguy0101 f8695d8
Get system property strings from consuming classes
thatcomputerguy0101 bd07258
Explicitly pass around device factory to avoid system properties
thatcomputerguy0101 9e30b1a
Fix hardware tests
thatcomputerguy0101 e2798a3
Remove native device factory constructors from Status and Vision LED …
thatcomputerguy0101 f5bce58
Only create a deviceFactory if it will be used
thatcomputerguy0101 3907a78
Make deviceFactory lazily instantiated
thatcomputerguy0101 6a2b29b
Fix import from rebase
thatcomputerguy0101 2932fc6
Make logged error running GPIO commands more detailed
thatcomputerguy0101 97c89c9
Move and tweak VisionLED state comment
thatcomputerguy0101 6d46eac
Reorganize HardwareTest custom gpio initialization
thatcomputerguy0101 91aed38
Switch GPIO command error to use string concatenation
thatcomputerguy0101 f66d866
Make GPIO package lowercase
thatcomputerguy0101 9c68847
Reorder imports for spotless
thatcomputerguy0101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 0 additions & 99 deletions
99
photon-core/src/main/java/org/photonvision/common/hardware/GPIO/CustomGPIO.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.