PIN 12 broken .... Could I use another pin instead?
-
Hi,
unfortunately some PINs on one of my arduinos are broken - due to beginners soldering. (A0, A6, A7, D12) (after unsoldering for the 5th time, there were some issues).
So is there maybe a way to use instead of PIN 12 for the radio e.g. PIN 8?
I already had a look at SoftSPI, but then I would need to use A0 which is broken as well.
Many Thanks
Petz
-
For soft SPI, there are no constraints. You should be able to pick any pin you want. Just replace the pin assignments in RF24_config.h (assuming you run on the master branch):
const uint8_t SOFT_SPI_MISO_PIN = 16; const uint8_t SOFT_SPI_MOSI_PIN = 15; const uint8_t SOFT_SPI_SCK_PIN = 14;
-
Worked!
Many Thanks
3 out of 3
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
Arduino Nano Every problem
Hardware • 1 Feb 2020, 09:18 • hakha4 5 Dec 2023, 02:21 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39 -
Newbie questions
Hardware • 14 Feb 2025, 20:03 • magwas 14 Feb 2025, 20:03 -
Best time of year to buy higher quality small project solar panels?
Hardware • 10 Jun 2021, 19:19 • NeverDie 30 Aug 2024, 14:01 -
Sensor to detect marijuana vape/smoke
Hardware • 21 Jan 2025, 06:36 • Hellmark 25 Feb 2025, 20:56