We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca8502 commit 50a11a7Copy full SHA for 50a11a7
api_drivers/common_api_drivers/indev/cst816s.py
@@ -41,6 +41,7 @@
41
42
_ChipID = const(0xA7)
43
_ChipIDValue = const(0xB5)
44
+_ChipIDValue2 = const(0xB6)
45
46
_ProjID = const(0xA8)
47
_FwVersion = const(0xA9)
@@ -205,7 +206,7 @@ def __init__(
205
206
self._read_reg(_FwVersion)
207
print('FW Version:', hex(self._rx_buf[0]))
208
- if chip_id != _ChipIDValue:
209
+ if chip_id not in (_ChipIDValue, _ChipIDValue2):
210
raise RuntimeError(f'Incorrect chip id ({hex(_ChipIDValue)})')
211
212
self._write_reg(_IrqCtl, _EnTouch | _EnChange)
0 commit comments