GpioController io =new GpioController(PinNumberingScheme.Logical, new RockchipDriver(gpioRegisterAddresses: new uint[] { 0xFF21_0000, 0xFF22_0000, 0xFF23_0000, 0xFF24_0000 }));
int iPin=RockchipDriver.MapPinNumber(gpioNumber: 2, port: 'A', portNumber: 2);
io.OpenPin(iPin);
io.SetPinMode(iPin, PinMode.InputPullDown);
PinValue value = io.Read(iPin);
Running the above and get error as follow... I wonder where did Pin 66 come from?
Unhandled exception. System.InvalidOperationException: Pin 66 does not support mode InputPullDown.
at System.Device.Gpio.GpioController.SetPinMode(Int32 pinNumber, PinMode mode)
at Program.<Main>$(String[] args)
Aborted