G120 and SPI2 pins

Hi

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

Br
Kim

@ 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. )

https://www.ghielectronics.com/downloads/man/G120_User_Manual.pdf

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…
https://www.ghielectronics.com/community/forum/topic?id=18861

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