I am just finishing off my Gadgeteer 4.3 SDK and i thought i would share a few tidbits
All of the IO is now done using a factory design patterns.
So for DigialOutput:
Gadgeteer.Interfaces.DigitalOutput _dataPin = new Gadgeteer.Interfaces.DigitalOutput(socket, GT.Socket.Pin.Seven, true, null);
Is now:
SPI:
```cs
Gadgeteer.Interfaces.SPI.Configuration _config = new Gadgeteer.Interfaces.SPI.Configuration(true, 0, 0, false, true, 4000);
Gadgeteer.Interfaces.SPI _spi = new Gadgeteer.Interfaces.SPI(socket, _config, Gadgeteer.Interfaces.SPI.Sharing.Shared, socket, (Socket.Pin)csPin, null);
Is now:
Gadgeteer.SocketInterfaces.SpiConfiguration _config = new Gadgeteer.SocketInterfaces.SpiConfiguration(false, 0, 0, false, true, 2000);
Gadgeteer.SocketInterfaces.Spi _spi = Gadgeteer.SocketInterfaces.SpiFactory.Create(socket, _config, SpiSharing.Shared, socket, GT.Socket.Pin.Five, null);
etc etc
Also note the change from
Gadgeteer.Interfaces to Gadgeteer.SocketInterfaces
And the case for SPI / Spi
*Edit - fixed cut and paste for SPI