Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
b0c08c8c
Commit
b0c08c8c
authored
Sep 18, 2015
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/nrf24l01: Fix SPI phase setting to match specs of nRF chip.
Addresses issue #1466.
parent
011c7f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/nrf24l01/nrf24l01.py
drivers/nrf24l01/nrf24l01.py
+1
-1
No files found.
drivers/nrf24l01/nrf24l01.py
View file @
b0c08c8c
...
@@ -53,7 +53,7 @@ class NRF24L01:
...
@@ -53,7 +53,7 @@ class NRF24L01:
assert
payload_size
<=
32
assert
payload_size
<=
32
# init the SPI bus and pins
# 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
)
cs
.
init
(
cs
.
OUT_PP
,
cs
.
PULL_NONE
)
ce
.
init
(
ce
.
OUT_PP
,
ce
.
PULL_NONE
)
ce
.
init
(
ce
.
OUT_PP
,
ce
.
PULL_NONE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment