Add support for AVR boards in UNIT_4RELAY::begin#4
Open
m0spak wants to merge 1 commit intom5stack:masterfrom
Open
Add support for AVR boards in UNIT_4RELAY::begin#4m0spak wants to merge 1 commit intom5stack:masterfrom
m0spak wants to merge 1 commit intom5stack:masterfrom
Conversation
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.
This change adds compatibility with AVR-based Arduino boards,
including classic boards such as UNO, Nano, and Mega.
The original implementation calls:
However, the AVR Wire library does not support passing SDA/SCL
pins to begin(); it only supports:
This update conditionally calls Wire.begin() on AVR platforms,
while keeping the original behavior for all other boards
(ESP32, ESP8266, RP2040, etc.).
Supporting AVR boards improves portability and allows the library
to be used across a wider range of Arduino boards in the community.