GPIO Access unter Win10 iot Core

srw2ho
srw2ho New Member Posts: 6
edited April 2020 in UP Squared Windows

I recently installed an UP2 board under Windows 10 iot Core. This worked so far.
Now I want to access the GPIO interface. There are some problems.

How can I access the GPIO interface in a UWP application under Win 10 ioT.

I have installed the framework "FrameworkSetup\iot", but I cannot access the GPIO interface.

The following call under C++
m_GPIOController = GpioController::GetDefault();
returns a null pointer.

How can I see if the driver is installed correctly (->UP Framework Service)
Is the command devcon status "@ROOT\DEVCON\0000" correct for this.

Access to the PWM driver seems to work. Anyway, no zero pointer comes back.

What am I doing wrong, does something have to be set in the BIOS? I have not done anything.

Friendly greetings

Willi

Answers

  • srw2ho
    srw2ho New Member Posts: 6
    edited April 2020

    How can I see if the driver is installed correctly (->UP Framework Service)
    Is the command devcon status "@ROOT\DEVCON\0000" correct for this.

  • srw2ho
    srw2ho New Member Posts: 6

    How can I use the GPIOs or the I2C interface via Win ioT within a UWP application.

    In a UWP application, the devices are accessed via the namespaces
    Windows.Devices.Gpio, Windows.Devices.I2c.

    Are these interfaces supported at all?

    Is there a documentation available, is a sample program available?

    There seems to be no information available in the Wiki about GPIO/I2C access via Win ioT /UWP.

    Please send me a quick answer.

    Friendly greetings

    Willi Schneider

Privacy Policy