How to change pin 10 for Wave Shield?

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
afogara
 
Posts: 1
Joined: Wed Oct 12, 2016 5:00 pm

How to change pin 10 for Wave Shield?

Post by afogara »

I want to change pin 10 to another pin due to conflicts. I read in another post that you have to change the library WavePinDefs.h to accommodate the new pin. However, when I looked at this file, pin 10 didn't appear like the rest. I'm not really a programmer so not very acquainted with this type of thing. What do I have to change in the file to change pin 10 to pin 1 (if I can even use pin 1) and how do I accommodate "Warning: SS may be redefined as another pin
but the hardware SS_PIN must be set to output mode before any calls to
WaveHC functions"

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: How to change pin 10 for Wave Shield?

Post by adafruit_support_mike »

You can change the pin number in WaveHC/WavePinDefs.h, but the Arduino SPI library is hardcoded with pin 10 as the default CS/SS pin. If you don't define that pin as an output, the SPI code will fail.

You can use pin 10 for other things as long as it's set as an output.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”