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 selectHow 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);
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login