Skip to content

Updated adafruit_si4713.py to also recognize the si4721 chip. #18

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
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Introduction
:target: https://github.com/adafruit/Adafruit_CircuitPython_SI4713/actions/
:alt: Build Status

CircuitPython module for SI4713 FM RDS transmitter.
CircuitPython module for SI4713 and SI4721 FM RDS transmitter.

Dependencies
=============
Expand Down
4 changes: 2 additions & 2 deletions adafruit_si4713.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def __init__(self, i2c, *, address=_SI4710_ADDR1, reset=None, timeout_s=0.1):
self._device = i2c_device.I2CDevice(i2c, address)
self.reset()
# Check product ID.
if self._get_product_number() != 13:
raise RuntimeError("Failed to find SI4713, check wiring!")
if self._get_product_number() != 13 and self._get_product_number() != 21:
raise RuntimeError("Failed to find SI4713 or SI4721, check wiring!")

def _read_u8(self, address):
# Read an 8-bit unsigned value from the specified 8-bit address.
Expand Down