Open
Conversation
- Updated fan.py: Migrated Gpio class to use GPIOD v2 API - Replaced gpiod.Chip().get_line() with gpiod.request_lines() - Updated line request to use LineSettings with Direction and Value enums - Changed set_value() calls to use line offset and Value.ACTIVE/INACTIVE - Updated misc.py: Migrated read_key function to use GPIOD v2 API - Replaced gpiod.Chip().get_line() with gpiod.request_lines() - Updated button GPIO configuration for v2 API - Changed get_value() to use line offset parameter - Updated DEBIAN/control: - Bumped version from 0.2 to 0.3 - Added minimum version requirement for python3-libgpiod (>= 2.0) - Updated description to indicate GPIOD v2 support - Added GPIOD_V2_MIGRATION.md with comprehensive migration notes - Documented all API changes - Included testing requirements - Added rollback instructions and benefits of v2
- Fix TypeError: get_value() returns Value enum, not int Convert Value.ACTIVE to 1 and Value.INACTIVE to 0 properly - Fix button GPIO direction: INPUT instead of OUTPUT Buttons should be read (INPUT), not written to (OUTPUT) Added PULL_UP bias for proper button reading This fixes the runtime error: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Value'
- Updated GitHub Actions workflow to extract version from DEBIAN/control - Added build-deb.sh for local DEB package building - Added install.sh for automated installation - Added BUILD_DEB.md and RELEASE_GUIDE.md documentation - All version references now dynamic (no hardcoding) - Workflow automatically attaches DEB to GitHub releases
- Add comprehensive comments to all env files (7 boards) - Convert chip numbers to /dev/gpiochipX paths for GPIOD v2 - Add safe default for HARDWARE_PWM environment variable - Update documentation with env file examples - Organize env files with clear sections Fixes: FileNotFoundError with GPIOD v2 Improves: User understanding of hardware configuration
Version: 0.3 -> 0.4 Changes: - Add comprehensive comments to all env files (7 boards) - Convert chip numbers to /dev/gpiochipX paths for GPIOD v2 - Add safe default for HARDWARE_PWM environment variable - Update documentation with env file examples - Organize env files with clear sections (OLED, Button, Fan, PWM) Fixes: - FileNotFoundError when GPIOD v2 tries to open GPIO chips - Missing HARDWARE_PWM causing KeyError - Improves user understanding of hardware configuration
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See GPIOD_V2_MIGRATION.md for details