fourstix / Sparkfun_CircuitPython_QwiicAS3935

CircuitPython library for the Sparkfun Qwiic AS3935 Lightning Detector
MIT License
2 stars 6 forks source link

Change Write/Read to write_then_read into #14

Closed fourstix closed 2 years ago

fourstix commented 2 years ago

Change the Write followed by Reads to use write_then_readinto(bytes([addr & 0xFF]), result)

fourstix commented 2 years ago

For details, please see this issue and the fix in the QwiicTwist code:

Issue: https://github.com/fourstix/Sparkfun_CircuitPython_QwiicTwist/issues/5

Code changes in history: https://github.com/fourstix/Sparkfun_CircuitPython_QwiicTwist/commit/79878caf0bd2b0627120c4eb6a172b3af3ac85a4#diff-03c23aa794e3755dc2d761de2bfca99e123ccab167bd156e738bbf81f8ef9e6d

fourstix commented 2 years ago

Updated.