I took a quick look at the libraries Adafruit provides to interact with the LCD screen and I can see that both Adafruit-GFX-Library-master and Adafruit-PCD8544-Nokia-5110-LCD-library-master make references to Arduino's AVR architectures. That being said its pretty much sure that they won't work with your Edison, since it uses x86 IA. So in order to make this libraries compatible with Edison they require major modifications.
My suggestion would be for you to re-write the libraries basing the new libraries in those provided by Adafruit, but eradicating the AVR calls.
Since I'm not very good with programming with microcontrollers, that is not a task i can do on my own, but nevermind that... I think you missed out the last part of my question? I tried sparkfun's library, and it compiled. Just that i need the SPI layout of the Edison breakout board, coz it doesnt work with the code i attached...
Sorry, yes indeed I missed your question about SPI.
According to the Intel® Edison Compute Module Hardware Guide in section 4.6, you can see that SPI on the Edison is found on pins 51, 53, 55, 57, and 59. Now, if you go to the Intel® Edison Breakout Board Schematic on sheet 7, you'll find that SSP5_FS1, SSP5_FS0, SSP5_CLK, SSP5_TXD, and SSP5_RXD (51, 53, 55, 57, and 59 pins) are GP111, GP110, GP109, GP115 and GP114 respectively. If we check the Intel® Edison Breakout Board Hardware Guide in table 2, we'll find that GP111 is on J17 - pin 10, GP110 is on J18 - pin 10, GP109 is on J17 - pin 11, GP115 is on J17 - pin 12 and GP114 is on J18 - pin 11. Which is also noticeable on the Intel® Edison Breakout Board Schematic on sheet 5.
Hi Peter, sorry for the late response.
Thanks for the reply, but actually I wanted the spi pins for the Edison breakout board, by which I mean the BIG one, with arduino headers? I think you gave the documents for the mini breakout, which I don't have. Also can you exactly specify the mosi, miso, sck pins for spi.
I'm sorry DangerousTim, I must have gotten confused. According to the Intel® Edison Arduino* Expansion Board Hardware Guide on table 2, the SPI interface on the Arduino Expansion Board is located on pins 10 through 13.