There are thousands of Gadgeteer boards out there, especially the popular FEZ Spider. These are discontinued products by GHI Electronics, but why? And how can we still use them with the latest technologies from GHI Electronics? … Since I am a huge fan of Gadgeteer, let’s do something about that!
Here is an example code:
// simple example (no module driver yet)
// LED module plugged into socket 1
// and that module's LED is found on pin4 (the button module)
var LED = GpioController.GetDefault().OpenPin(FEZSpiderII.GpioPin.Socket1.Pin4);
LED.SetDriveMode(GpioPinDriveMode.Output);
// This is the onboard LED (Debug LED) found right onto the mainboard itself
var OnboardLED = GpioController.GetDefault().OpenPin(FEZSpiderII.GpioPin.DebugLed);
OnboardLED.SetDriveMode(GpioPinDriveMode.Output);
while (true) {
LED.Write(GpioPinValue.High);
OnboardLED.Write(GpioPinValue.High);
Thread.Sleep(200);
LED.Write(GpioPinValue.Low);
OnboardLED.Write(GpioPinValue.Low);
Thread.Sleep(200);
}
Discuss on our forum:
[ Ссылка ]
Ещё видео!