We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4f1054 + 519bf36 commit 88250a1Copy full SHA for 88250a1
adafruit_bus_device/spi_device.py
@@ -89,7 +89,7 @@ def __init__(
89
self.chip_select = chip_select
90
self.cs_active_value = cs_active_value
91
if self.chip_select:
92
- self.chip_select.switch_to_output(value=True)
+ self.chip_select.switch_to_output(value=not self.cs_active_value)
93
94
def __enter__(self) -> SPI:
95
while not self.spi.try_lock():
0 commit comments