When I try to use I2c1 SDA pin (GPIO 2 BCM number) via GpioController::OpenPin() func, it compiles OK but it throws an exception HRESULT:0x80070490 Element not found.

How should I use I2c pins as any other gpio pin like GPIO 5 or 6 for example.

Note: Numbers above are BCM

  • I have no idea what GpioController does. It's not a standard C++ library. Where did you get it? Is it a library? – joan Jul 25 '15 at 12:58
  • @joan Forgot to mention, I'm using Microsoft Visual Universal App – Quest Jul 25 '15 at 13:00
  • So is this a Windows IoT application? – joan Jul 25 '15 at 13:01
  • @joan Yep it is - sorry for long reaction time – Quest Jul 25 '15 at 13:24

Assuming this is a Windows 10 IoT application.

At the moment it does not seem possible to use some gpios as gpios with Windows 10 IoT.

For instance I2C gpios (gpios 2 and 3) and the main SPI gpios (gpios 7, 8, 9, 10, and 11) may only be used for I2C and SPI respectively.

I have not seen any official announcement, perhaps raise a question on https://social.msdn.microsoft.com/forums/en-US/home?forum=WindowsIoT

  • Do you have any information if this "feature" will be avalible in later builds? – Quest Jul 25 '15 at 13:27
  • I simply don't know. If I was you I'd raise the question on the forum I linked, firstly to check what I've said is correct, and, secondly, to show the feature would be of use. – joan Jul 25 '15 at 13:30
  • I've already did. I just wanted to make sure you aren't aware of any possibilities. – Quest Jul 25 '15 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.