Skip to content

Commit f4ea083

Browse files
committed
Updated adafruit_si4713.py to also recognize the si4721 chip.
It will work in analog input mode as the si4713 chip. Digital input not yet tested, will be done later
1 parent 293b827 commit f4ea083

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Introduction
1313
:target: https://github.com/adafruit/Adafruit_CircuitPython_SI4713/actions/
1414
:alt: Build Status
1515

16-
CircuitPython module for SI4713 FM RDS transmitter.
16+
CircuitPython module for SI4713 and SI4721 FM RDS transmitter.
1717

1818
Dependencies
1919
=============

adafruit_si4713.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def __init__(self, i2c, *, address=_SI4710_ADDR1, reset=None, timeout_s=0.1):
122122
self._device = i2c_device.I2CDevice(i2c, address)
123123
self.reset()
124124
# Check product ID.
125-
if self._get_product_number() != 13:
126-
raise RuntimeError("Failed to find SI4713, check wiring!")
125+
if self._get_product_number() != 13 and self._get_product_number() != 21:
126+
raise RuntimeError("Failed to find SI4713 or SI4721, check wiring!")
127127

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

0 commit comments

Comments
 (0)