Skip to content
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

Remove stop kwarg from busio.I2C().writeto #2082

Closed
tannewt opened this issue Aug 21, 2019 · 4 comments · Fixed by #3195
Closed

Remove stop kwarg from busio.I2C().writeto #2082

tannewt opened this issue Aug 21, 2019 · 4 comments · Fixed by #3195

Comments

@tannewt
Copy link
Member

tannewt commented Aug 21, 2019

With the introduction of writeto_then_readfrom into busio.I2C in 5.x. The stop kwarg is no longer needed. In fact, using it is likely the wrong thing to do since it is unsupported with Blinka.

@tannewt tannewt added this to the Long term milestone Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_Register that referenced this issue Aug 21, 2019
@tannewt tannewt modified the milestones: Long term, 6.0.0 Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_BoardTest that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_VL6180X that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_VEML6075 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_BusDevice that referenced this issue Aug 21, 2019
It will be removed from libraries and then from here.
See adafruit/circuitpython#2082 for details.
tannewt added a commit to tannewt/Adafruit_CircuitPython_VCNL4010 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_TSL2591 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_TSL2561 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_TMP007 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_TMP006 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_TCS34725 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_SI7021 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_SI4713 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_DS1307 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_DRV2605 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_CCS811 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_CAP1188 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_BNO055 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_APDS9960 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_AMG88xx that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_ADT7410 that referenced this issue Aug 21, 2019
tannewt added a commit to tannewt/Adafruit_CircuitPython_ADS1x15 that referenced this issue Aug 21, 2019
@kattni
Copy link

kattni commented Aug 22, 2019

We're looking for any assistance in testing all of the outstanding library PRs associated with this issue!

If you have any of these sensors and would like to help out, please grab something like a Feather M4 Express and do the following:

  1. Update to the latest Adafruit CircuitPython BusDevice release (4.0.0, released 22 August 2019)
  2. Find the PR for the sensor you'd like to test.
  3. Comment on the PR that you are going to test the PR. (This will avoid any duplicate work!)
  4. Test the code from the PR.
  5. If tested successfully, approve and merge the PR. If you do not have access to merge, please comment on the PR that you have tested it successfully and tag me (@kattni) in the approval comment.
  6. Do a new release on the library. (Again, if you do not have access, please comment on the PR and tag me (@kattni) in the comment.

If you have any questions, please tag me in a comment or find me on Discord in the #circuitpython channel.

Thanks!

dhalbert pushed a commit that referenced this issue Aug 28, 2019
writeto_then_readfrom has been added to do a write -> no stop ->
repeated start -> read sequence. This is done to match the
capabilities of Blinka on Linux.

Code that uses stop=False will not work correctly on Blinka.
To fix, if stop=False then use writeto_then_readfrom otherwise use
writeto then readfrom_into.

First step in #2082
@kattni
Copy link

kattni commented Aug 28, 2019

All library PRs have been merged. Changes were tested with LIDARLite to verify changes work successfully.

@tampe125
Copy link

tampe125 commented Aug 29, 2019

Hello, this change send to have broken some stuff. More info here adafruit/Adafruit_CircuitPython_VL6180X#7

@kattni

@kevinjwalters
Copy link

This has broken:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants