-
Notifications
You must be signed in to change notification settings - Fork 52
[API v1]: Add support for I2C Output Components #751
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
Open
brentru
wants to merge
12
commits into
main
Choose a base branch
from
api-v1-add-i2c-output
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
tyeth
approved these changes
May 16, 2025
tyeth
requested changes
May 16, 2025
Comment on lines
+94
to
+95
https://github.com/adafruit/Adafruit_LED_Backpack.git | ||
https://github.com/adafruit/Adafruit_PM25AQI.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these are in the platformIO registry:
https://registry.platformio.org/libraries/adafruit/Adafruit%20LED%20Backpack%20Library
https://registry.platformio.org/libraries/adafruit/Adafruit%20PM25%20AQI%20Sensor
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 pull request enhances core I2C functionality by adding support for I2C output devices. This is a backport of #749 to work with the v1 WipperSnapper Protocol Buffer API.
The following I2C Output Devices are supported by this pull request:
Addresses: adafruit/Wippersnapper_Protobuf#144
Resolves: #742
Full Diff (Automatically Generated using Copilot Summary)
Support for New I2C Output Devices:
WipperSnapper_I2C_Driver_Out
,WipperSnapper_I2C_Driver_Out_QuadAlphaNum
, andWipperSnapper_I2C_Driver_Out_CharLcd
. These classes encapsulate the functionality required to interact with these devices. (src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out.h
,src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_CharLcd.h
) [1] [2]Updates to I2C Initialization and Deinitialization:
initI2CDevice
to initialize the new output devices (quadalphanum
andcharlcd
) with specific configurations such as brightness and alignment for LED backpacks and row/column setup for character LCDs. (src/components/i2c/WipperSnapper_I2C.cpp
)deinitI2CDevice
to properly handle the removal of output drivers, ensuring compatibility with both ESP-IDF and Arduino architectures. (src/components/i2c/WipperSnapper_I2C.cpp
)Handling I2C Output Operations:
Handle_I2cDeviceOutputWrite
to process messages for output devices, including writing text or numeric values to LED backpacks and character LCDs. (src/components/i2c/WipperSnapper_I2C.cpp
,src/components/i2c/WipperSnapper_I2C.h
) [1] [2]Dependency Updates:
library.properties
andplatformio.ini
to include new dependencies for the Adafruit LED Backpack and LiquidCrystal libraries, ensuring the required libraries are available for the new functionality. (library.properties
,platformio.ini
) [1] [2]Debugging and Logging:
src/Wippersnapper.cpp
,src/components/i2c/WipperSnapper_I2C.cpp
) [1] [2]These changes significantly expand the WipperSnapper framework's capabilities, enabling support for a broader range of I2C devices and improving the overall robustness of the I2C handling logic.