My friend is using the GPIO library; .NET IoT 1.3
He was trying to control the brightness/strength of the LED, but the library seems to only have a way to turn the LEDs on and off.
Here is some code I've quickly sprung up as to show what I mean
using System;
using System.Device.Gpio;
using System.Threading;
int pin = 17;
using var controller = new GpioController();
controller.OpenPin(pin, PinMode.Output);
controller.Write(pin, PinValue.High)
Whereas, PinValue, according to the documentation has the values "High" and "Low". But seemingly no way to adjust it specifically.
https://docs.microsoft.com/en-us/dotnet/api/system.device.gpio.pinvalue?view=iot-dotnet-1.3
Now, in Python it's very simple to control LED brightness; using the GPIO Zero library:
from gpiozero import LED
from signal import pause
led = LED(17)
led.value = 0.5
pause()
Is there any way, without modifying memory, to achieve this using the given .NET Library?