@rf24/rf24
    Preparing search index...

    Interface HardwareConfig

    Optional configuration parameters to fine tune instantiating the RF24 object. Pass this object as third parameter to RF24 constructor.

    interface HardwareConfig {
        devGpioChip?: number;
        devSpiBus?: number;
        spiSpeed?: number;
    }
    Index

    Properties

    devGpioChip?: number

    The GPIO chip number: /dev/gpiochipN where N is this value.

    0, but needs to be 4 on RPi5 (or newer). This may also need to be specified for nVidia's hardware offerings.

    devSpiBus?: number

    The SPI bus number: /dev/spidevX.Y where X is this value and Y is the csPin required parameter to RF24 constructor

    0, but can be as high as 3 depending on the number of SPI buses available/exposed on the board.

    spiSpeed?: number

    The SPI speed in Hz used to communicate with the nRF24L01 over SPI.

    10000000 (10 MHz) which is the radio's maximum supported speed. Lower this to 6 or 4 MHz when using long wires or if builtin pull-up resistors are weak.