Skip to content

Commit b0c08c8

Browse files
committed
drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip.
Addresses issue adafruit#1466.
1 parent 011c7f5 commit b0c08c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nrf24l01/nrf24l01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, spi, cs, ce, channel=46, payload_size=16):
5353
assert payload_size <= 32
5454

5555
# init the SPI bus and pins
56-
spi.init(spi.MASTER, baudrate=4000000, polarity=0, phase=1, firstbit=spi.MSB)
56+
spi.init(spi.MASTER, baudrate=4000000, polarity=0, phase=0, firstbit=spi.MSB)
5757
cs.init(cs.OUT_PP, cs.PULL_NONE)
5858
ce.init(ce.OUT_PP, ce.PULL_NONE)
5959

0 commit comments

Comments
 (0)