#### Exception System.Exception - CLR_E_PIN_UNAVAILABLE (2) ####
#### Message:
#### Microsoft.SPOT.Hardware.Port::.ctor [IP: 0000] ####
#### Microsoft.SPOT.Hardware.OutputPort::.ctor [IP: 0006] ####
#### Microsoft.SPOT.Hardware.SPI::.ctor [IP: 004d] ####
#### NetduinoApplication1.Program::.cctor [IP: 0024] ####
A first chance exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll
An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.dll
Uncaught exception
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
#### Exception System.NullReferenceException - CLR_E_NULL_REFERENCE (1) ####
#### Message:
#### NetduinoApplication1.Program::Main [IP: 000b] ####
A first chance exception of type 'System.NullReferenceException' occurred in NetduinoApplication1.exe
An unhandled exception of type 'System.NullReferenceException' occurred in NetduinoApplication1.exe
public static SPI.Configuration spi_config = new SPI.Configuration(Pins.GPIO_PIN_D13, false, 1, 1, true, false, 15000, SPI_Devices.SPI1); public static SPI mySPI = new SPI(spi_config);