public IGPIOPin OpenPin(uint number, GPIOPinSharingMode shareMode) { bool success = InternalDevice.TryOpenPin((int)number, GpioSharingMode.Exclusive, out GpioPin pin, out GpioOpenStatus status); if (success) { return(new GPIOPin(pin, this)); } else { return(null); } }
private void InternalDevice_ReportUpdated(Windows.Devices.Power.Battery sender, object args) { _Report = InternalDevice.GetReport(); }