diff options
author | Damien George <damien.p.george@gmail.com> | 2015-09-18 13:00:12 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-09-18 13:00:12 +0000 |
commit | b0c08c8c173cbfe66ad78af55f4025543bbdbd9b (patch) | |
tree | 596600c1abfb399150f787918a596d9a92e0c5c1 | |
parent | 011c7f5718473f7a2aa855d4d8b432f6c2baeb72 (diff) |
drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip.
Addresses issue #1466.
-rw-r--r-- | drivers/nrf24l01/nrf24l01.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nrf24l01/nrf24l01.py b/drivers/nrf24l01/nrf24l01.py index b6d80451e..a244b0b25 100644 --- a/drivers/nrf24l01/nrf24l01.py +++ b/drivers/nrf24l01/nrf24l01.py @@ -53,7 +53,7 @@ class NRF24L01: assert payload_size <= 32 # init the SPI bus and pins - spi.init(spi.MASTER, baudrate=4000000, polarity=0, phase=1, firstbit=spi.MSB) + spi.init(spi.MASTER, baudrate=4000000, polarity=0, phase=0, firstbit=spi.MSB) cs.init(cs.OUT_PP, cs.PULL_NONE) ce.init(ce.OUT_PP, ce.PULL_NONE) |