Mapping Gadgeteer sockets to cpu resources

Say you want to use a Spider and RS21 without the Gadgeteer framework. What is the easiest way to map, say socket 6 to the correct SPI, CS and INT pins? I did it by reading the schematic (and still not sure I got it right), but is there a simple table or source code somewhere to help us go from Gadgeteer initialization to unwrapped driver initialization?

In my case I am using the RS21 and want to go from this:


to this: (may not be correct) :

```cs] _wifi = new WiFiRS9110(SPI.SPI_module.SPI3, (Cpu.Pin)10, (Cpu.Pin)18);[/code

@ mcalsyn - The latest pre-release SDKs contain pin mappings for all boards in GHI.Pins. For example: GHI.Pins.FEZSpider.Socket6.SpiModule will return the SPI_module instance for that socket.

1 Like

@ John - Perfect! Thanks.