Custom connection pin radio to pro mini
-
Hello All.
I want connect a radio to arduino pro mini to anather pins.
I need 5 PWM output pin. An arduino have PWM on 3,5,6,9-11 but radio use 9-11 pins.
Summary we have only 3 free pins.I don't see examle for change connecting pins.
In API i find only this:MySensor(uint8_t cepin = 9, uint8_t cspin = 10);
In this forum i find 2 examles:
const uint8_t SOFT_SPI_MISO_PIN = 16; const uint8_t SOFT_SPI_MOSI_PIN = 15; const uint8_t SOFT_SPI_SCK_PIN = 14; #define RADIO_CE_PIN 5 // radio chip enable #define RADIO_SPI_SS_PIN 6 // radio SPI serial select
How correct?
-
If you enable SOFT_SPI for radio in RF24_config.h you can move these pins around.
-
Thank you for answer.
I find anover.
May i use this examle:// PIN Radio #define RADIO_CE_PIN 9 // radio chip enable #define RADIO_SPI_SS_PIN 10 // radio SPI CS SS serial select ... MySensor gw(RADIO_CE_PIN, RADIO_SPI_SS_PIN);