-
Notifications
You must be signed in to change notification settings - Fork 77
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
Conversation
Tested OK with a feather M0 connecting MISO directly to MOSI. |
pylint complaining about trailing whitespace:
|
adafruit_bus_device/spi_device.py
Outdated
@@ -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, *, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you!!
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
Resolves #8. I didn't have hardware to fully test at PyCon, please test with BMP280 with/without specifying chip_select.