Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Advanced users • Re: node-red-contrib-rc522 on SPI1

$
0
0

Code:

dtoverlay=spi1-3cs,cs0_pin=36,cs1_pin=31 ,cs2_pin=32
There are two problems with this line:
1. Although the parameter names include the word "pin", the numbers should be "Broadcom" GPIO numbers. Running "pinctrl -p 31,32,36" shows the corresponding GPIOs: pin 31 is GPIO6, pin 32 is GPIO12, and pin 36 is GPIO16.
2. The space before "cs2_pin" is going to upset the parser.

Does this work better?:

Code:

dtoverlay=spi1-3cs,cs0_pin=16,cs1_pin=6,cs2_pin=12

Statistics: Posted by PhilE — Thu Mar 07, 2024 9:47 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles