none
I2c Device via System.Device.GPIO example RRS feed

  • Question

  • I am writing a .NET Core 3.0 class library and need to access an i2c Device via System.Devices.GPIO to access and initialize an i2c device, when <g class="gr_ gr_284 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="284" id="284">i</g> consume this class library (by adding reference of DLL) to my test UWP project, it fails to load the UWP application on DragonBoard 410C (Which has Windows 10 IOT installed), the error message <g class="gr_ gr_285 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="285" id="285">i</g> am getting <g class="gr_ gr_544 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="544" id="544">is :</g> Unable to load file

    Can someone help with sample project in c# code to get I2C <g class="gr_ gr_526 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation multiReplace" data-gr-id="526" id="526">device.</g>

    Saturday, November 9, 2019 6:34 AM

All replies

  • Hello Barlas78,

    How did you add the reference? You can install the package from nuget in your .net core project. Here is an example.

    https://github.com/dotnet/iot/tree/master/samples

    Best Regards,

    Michael


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Monday, November 11, 2019 2:54 AM
    Moderator