Skip to content

Commit

Permalink
Merge pull request #193 from AndreWohnsland/dev
Browse files Browse the repository at this point in the history
Make the rpi5 output device off by default
  • Loading branch information
AndreWohnsland authored Oct 13, 2024
2 parents c179435 + ad434f0 commit 0c4678d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ If you want to support this project, feel free to fork it and create your own pu
To get started, have a quick look into the [Guidelines for contributing](./CONTRIBUTING.md). Here is a general list of features or refactoring things, I may do in the future. With your help, these things come even faster! If your idea is not on the list, feel free to open a feature request, I may consider it!

- `easy`: Translate all dialogs / UI to your native language
- `medium`: Help to move to v2 with API based control and a separate UI
- `easy-hard`: Implement a cool [addon](https://github.com/AndreWohnsland/CocktailBerry-Addons) and make it verified

# Development
Expand Down
2 changes: 1 addition & 1 deletion src/machine/raspberry.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def initialize_pin_list(self, pin_list: list[int], is_input: bool = False, pull_
self.gpios[pin] = InputDevice(pin, pull_up=pull_up)
else:
# Initialize OutputDevice with active_high based on the inverted flag
self.gpios[pin] = OutputDevice(pin, initial_value=self.low, active_high=self.active_high)
self.gpios[pin] = OutputDevice(pin, initial_value=False, active_high=self.active_high)
except Exception as e:
# Catch any error and continue, printing the pin and error message
logger.log_event("WARNING", f"Error: Could not initialize GPIO pin {pin}. Reason: {e!s}")
Expand Down

0 comments on commit 0c4678d

Please sign in to comment.