G120 and SPI2 pins


I have connected a ENC28 and it is connected to SPI2 which in the G120 manual is pin 19, 20 and 21.
what should i write:
var enc = new GHI.Networking.EthernetENC28J60(SPI.SPI_module.SPI2, G120.PX_xx, G120.Px_xx, G120.Px_xx)

I the forum I found P1_17, P0_5 and P1_14 but they do not match my phycical connection


@ Kimjespersen - It depends on your physical hardware setup. Those three pins are reset, interrupt, and chip select.

You must match your physical connection :slight_smile:

Take a look at the manual (around page 8. )


Thanks !

I have a G120HDR rev. 2 and I cannot get ENC28 working. Can you post your code please?
Thank you!

better off creating your own post !

I did some days ago…

lets go there and work on it together then :slight_smile: