Anyone use this library before?
Looks like they try to do SPI in software (they call it SW SPI), but it references pins that go over number 54 , but the pin numbering does not go that high on a mega board.
Anyone use this library before?
Looks like they try to do SPI in software (they call it SW SPI), but it references pins that go over number 54 , but the pin numbering does not go that high on a mega board.
Looks like a useless library. Are You in love with that library? Joking!
Please post references to the hardware You intend to use. Datasheet links are valuable.
With hardware SPI one is constrained to certain pins for MOSI, MISO and SCK. The reason for software SPI is to be able to use pins other than the required pins. So, you can use whatever pins that you want, you do not have to use the pins in the example.
On the Mega the pins 54 and over are referring to the analog inputs. The analog inputs are really digital inputs with analog input as a special function. Those pins have all of the attributes of any other digital pins, like internal pullups.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.