TinyCLR OS is a good beginning to develop with Windows IoT Core on Raspberry Pi

When Gus introduced TinyCLR OS, he says “TinyCLR OS has a similar API to the Windows 10 IoT Core Extensions API. For example, controlling a pin on a Raspberry PI running Windows 10 is very similar to how pins are now controlled on a FEZ Panda III”. It’s true :sunglasses: !

private GpioController _gpio;
private GpioPin _FezHatLedR;

    private void Page_Loaded(object sender, RoutedEventArgs e)
    {
        _gpio = GpioController.GetDefault();
        _FezHatLedR = _gpio.OpenPin(24);
        _FezHatLedR.SetDriveMode(GpioPinDriveMode.Output);
        _FezHatLedR.Write(GpioPinValue.Low);
    }
    private void OnBTN_Click(object sender, RoutedEventArgs e)
    {
        _FezHatLedR.Write(GpioPinValue.High);
    }
    private void OffBTN_Click(object sender, RoutedEventArgs e)
    {
        _FezHatLedR.Write(GpioPinValue.Low);
    }

https://twitter.com/MNO_Ph/status/898521272816201733

1 Like