Skip to content

Commit 2344282

Browse files
committed
update py examples' comment about pin numbers
1 parent 0aac3d5 commit 2344282

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

examples_linux/acknowledgement_payloads.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
print(__file__) # print example name
1414

1515
########### USER CONFIGURATION ###########
16-
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
17-
# Radio CE Pin, CSN Pin, SPI Speed
18-
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
16+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
1917
# their own pin numbering
20-
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
21-
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
18+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
19+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
20+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
2221
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
2322
if RF24_DRIVER == "MRAA":
2423
CE_PIN = 15 # for GPIO22

examples_linux/getting_started.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
print(__file__) # print example name
1313

1414
########### USER CONFIGURATION ###########
15-
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
16-
# Radio CE Pin, CSN Pin, SPI Speed
17-
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
15+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
1816
# their own pin numbering
19-
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
20-
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
17+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
18+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
19+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
2120
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
2221
if RF24_DRIVER == "MRAA":
2322
CE_PIN = 15 # for GPIO22

examples_linux/interrupt_configure.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131

3232

3333
########### USER CONFIGURATION ###########
34-
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
35-
# Radio CE Pin, CSN Pin, SPI Speed
36-
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
34+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
3735
# their own pin numbering
38-
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
39-
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
36+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
37+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
38+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
4039
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
4140
if RF24_DRIVER == "MRAA":
4241
CE_PIN = 15 # for GPIO22

examples_linux/manual_acknowledgements.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919
print(__file__) # print example name
2020

2121
########### USER CONFIGURATION ###########
22-
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
23-
# Radio CE Pin, CSN Pin, SPI Speed
24-
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
22+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
2523
# their own pin numbering
26-
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
27-
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
24+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
25+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
26+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
2827
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
2928
if RF24_DRIVER == "MRAA":
3029
CE_PIN = 15 # for GPIO22

examples_linux/multiceiver_demo.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
print(__file__)
1717

1818
########### USER CONFIGURATION ###########
19-
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
20-
# Radio CE Pin, CSN Pin, SPI Speed
21-
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
19+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
2220
# their own pin numbering
23-
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
24-
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
21+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
22+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
23+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
2524
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
2625
if RF24_DRIVER == "MRAA":
2726
CE_PIN = 15 # for GPIO22

examples_linux/scanner.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212

1313
from RF24 import RF24, RF24_1MBPS, RF24_2MBPS, RF24_250KBPS, RF24_DRIVER
1414

15+
########### USER CONFIGURATION ###########
16+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
17+
# their own pin numbering
18+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
19+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
20+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
1521
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
1622
if RF24_DRIVER == "MRAA":
1723
CE_PIN = 15 # for GPIO22

examples_linux/streaming_data.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
print(__file__) # print example name
1313

1414
########### USER CONFIGURATION ###########
15-
# See https://github.com/TMRh20/RF24/blob/master/pyRF24/readme.md
16-
# Radio CE Pin, CSN Pin, SPI Speed
17-
# CE Pin uses GPIO number with BCM and SPIDEV drivers, other platforms use
15+
# CE Pin uses GPIO number with RPi and SPIDEV drivers, other drivers use
1816
# their own pin numbering
19-
# CS Pin addresses the SPI bus number at /dev/spidev<a>.<b>
20-
# ie: RF24 radio(<ce_pin>, <a>*10+<b>); spidev1.0 is 10, spidev1.1 is 11 etc..
17+
# CS Pin corresponds the SPI bus number at /dev/spidev<a>.<b>
18+
# ie: radio = RF24(<ce_pin>, <a>*10+<b>)
19+
# where CS pin for /dev/spidev1.0 is 10, /dev/spidev1.1 is 11 etc...
2120
CSN_PIN = 0 # GPIO8 aka CE0 on SPI bus 0: /dev/spidev0.0
2221
if RF24_DRIVER == "MRAA":
2322
CE_PIN = 15 # for GPIO22

0 commit comments

Comments
 (0)