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

Made chip_select default to None #17

Merged
merged 3 commits into from
May 14, 2018

Conversation

cerickson
Copy link
Contributor

Resolves #8. I didn't have hardware to fully test at PyCon, please test with BMP280 with/without specifying chip_select.

@cerickson
Copy link
Contributor Author

Tested OK with a feather M0 connecting MISO directly to MOSI.

@dhalbert dhalbert self-requested a review May 14, 2018 19:07
@dhalbert
Copy link
Contributor

pylint complaining about trailing whitespace:

Using config file /home/travis/build/adafruit/Adafruit_CircuitPython_BusDevice/.pylintrc
************* Module adafruit_bus_device.spi_device
C: 68, 0: Trailing whitespace (trailing-whitespace)
-----------------------------------
Your code has been rated at 9.82/10

@@ -65,7 +65,8 @@ class SPIDevice:
with device as spi:
spi.write(bytes_read)
"""
def __init__(self, spi, chip_select=None, *, baudrate=100000, polarity=0, phase=0, extra_clocks=0):
def __init__(self, spi, chip_select=None, *,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove trailing space on this line

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thank you!!

@dhalbert dhalbert merged commit 376a80e into adafruit:master May 14, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 23, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_BusDevice to 2.2.0 from 2.1.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_BusDevice#17 from cerickson/issue8_spi_nochipselect

Updating https://github.com/adafruit/Adafruit_CircuitPython_HID to 3.1.1 from 3.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_HID#21 from zzsnzmn/check_circuitpython_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants