Given the dearth of detail, about the only thing I can ask is do either of those libraries expect hardware SPI to be on the pins you mentioned? If so, you might want to recheck your assumptions vis-a-vis the Mega.
Every library should have a library.properties file in the library folder. Look for the architecture= line if is says * then it is architecture agnostic.
And if that leaves you scratching your head, consider Googling arduino mega r3 pinout and choosing one of the more user friendly 3rd party pinout diagrams, like the one found at the link below, for instance.
The bottom line: Google is not only your friend for finding stuff out, it's your indispensable friend. The cool kids may not use Grandpa Google anymore, but being trendy doesn't make you right.
Thanks loads you guys for your pointers. I did some digging around and found where the pins are. I would never have thought to look for that. Here is what I found.
UNO
Mega
SCK
13
52
MISO
12
50
MOSI
11
51
SS(CS)
10
53
After adjusting my software and putting the pins in the right place, all is now working. I was all set to return the Mega as I thought it was broken
You guys are the top!. Thats what you get for being a newb
?
I don't see the need for that.
The SPI library knows that the SPI pins are different on a Mega.
Just connect to the right pins, no further change needed.
Leo..