I'm making a project to display Text on P10 Led display using Arduino Uno. I'm also using ethernet shield(enc28j60). But I'm facing issues as both enc28j60 and P10 display require pin 11 & 13. Since Pin 11,12,13 are SPI pins I tried connecting them serially but to no avail. I might be wrong as I'm not much known to hardware yet. Some help would be appreciated.
Code:
The Ethernet module is using the SPI interface, hence its use of those pins, but why does the display need to use the same pins ? Are they hard coded in the library that you are using ?
Yes, I'm using the DMD-master library by freetronics for my project. This is present in the DMD.h file. I even tried changing the pins, renaming the library and then uploading the library into the project but still no positive sign. I even connected ethernet module to the icsp pins on arduino board.
It looks like you could change the pin numbers in those #defines, in fact there are specific references to the other uses of pins 11 and 13
However, the READMO for the library also says
Includes:
High speed display connection straight to SPI port and pins.
So it looks like the display uses the SPI interface. If that is the case then you should be able to connect the Ethernet board and the display in parallel to the SPI pins. Have you tried that ?
I've posted the image of connections in post1 itself. I also tried a normal publish message program while the connections were on icsp pins and a basic text display program from dmd where in I changed the pins from library (same as you mentioned) and renamed that library and included it using zipcode. Still it accepts the previous pins only.
I already did try that. All the three hardware together (Arduino UNO+ENC28J60+P10) can run a single project i.e either display example or message publish example efficiently. But when I try it with my code i.e both the devices together it throws error