Skip to content

Change I2C terminology from "peripheral" to "target" #6721

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
merged 1 commit into from
Aug 9, 2022

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Aug 9, 2022

Fixes #6087.

  • Renames "I2C peripheral" terminology internally to "I2C target".
  • Rename i2cperipheral module to i2ctarget. Keep i2cperipheral as an alias until 9.0.0.
  • Rename I2CPeripheral module to I2CTarget. Keep I2CPeripheral as an alias until 9.0.0.

The only name I cannot alias is I2CTargetRequest, which cannot be instantiated directly anyway. So if someone is referencing I2CPeripheralRequest, in say, isinstance(), they will have to change the code. This doesn't seem too likely.

@dhalbert
Copy link
Collaborator Author

dhalbert commented Aug 9, 2022

Smoke tested on Metro M4 and Feather ESP32 S2 TFT: I created instances of both the old and new names of I2CPeripheral and I2CTarget. help("modules") shows both i2cperipheral and i2ctarget.

@tannewt tannewt self-requested a review August 9, 2022 17:33
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Happy to see this in 8.

@dhalbert dhalbert merged commit c4db71d into adafruit:main Aug 9, 2022
@dhalbert dhalbert deleted the i2c-target branch August 9, 2022 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please consider using new official I2C terminology.
2 participants