Add .RaspberryPi4 as valid enum case for I2C interfaces #116
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.
What's in this pull request?
Small change to add .RaspberryPi4 as a valid enum case for the same I2C interfaces as Pi3. Without it, calls to
SwiftyGPIO.hardwareI2Cs(for:.RaspberryPi4)
will return nil, though the I2C implementation is valid for Pi4 and Pi4B.There is also one small comment typo fix for what looks to be a copy/paste of Pi3 to Pi4 in the global enums.
Lastly a minor README add to mention Pi 4B support, which I have been using for general GPIO and I2C integration with PCA 9685 and GY-521 (MPU 6050) modules.
Is there something you want to discuss?
Tested with MPU-6050.swift on default address (
0x68
)Tested with PCA9685 on default address (
0x40
)Built On
Swift 5.3.2 on macOS 11.1
Swift 5.1.5 on Raspbian 10 (buster) 32 bit
Pull Request Checklist