I want to connect some sensor via I2C. As I understand the I2C connectors are connected to the CPU (area U1). I guess this means there is no need to run things over RemoveDevice() in C#. I found https://github.com/Microsoft/Windows-un ... ta.xaml.cs as example. I guess I can access them directly through this lib, but what are the addresse? Can find anything on that.
Thx in advance
Connect to I2C
Forum rules
- Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.
- Members should post in a way which is consistent with "normal writing". That is users should not post excessive numbers of emoticons, large, small or coloured text, etc. Similarly users should not SHOUT or use excessive punctuation (e.g. ! and ?) in topic titles or posts.
- Members should use an appropriate, descriptive subject when posting a new topic. Examples of bad subjects include; "Help me!", "I'm stuck!", "I've got an error!", etc. Examples of good subjects include; "Getting an TABLE FULL error upon login", "Cannot restore a backup".
- Members are asked to post in English only so that posts can be well received and properly monitored.
- Spam is not tolerated here under any circumstance. This includes offering hosting services (charged and free), installation services, solicitation etc. Recruiting members for your own projects (moderators, designers, professional MOD work, etc.) is not permitted and is also considered spam. Users posting spam will be warned and their post removed.
- Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning. Vulgar language and inappropriate material is not allowed and will be removed. We try to maintain a family friendly atmosphere whenever it is possible within the main subject matter of this community. Please keep this in mind when participating.
- Each user is allowed to create one account. If you would like to change your username, please contact us and, most likely, we can do it for you while you can keep all of your profile data, posts, and other content.
- If a user violates our guidelines and shows a disregard for them, our staff and our community, they run the risk of losing their account. We reserve the right to deactivate any account and to edit or remove any content without warning. These guidelines are subject to change at any time without notice.
Thank you for visiting LattePanda.com!
- Posts are to be made in the relevant forum. Users are asked to read the forum descriptions before posting.
- Members should post in a way which is consistent with "normal writing". That is users should not post excessive numbers of emoticons, large, small or coloured text, etc. Similarly users should not SHOUT or use excessive punctuation (e.g. ! and ?) in topic titles or posts.
- Members should use an appropriate, descriptive subject when posting a new topic. Examples of bad subjects include; "Help me!", "I'm stuck!", "I've got an error!", etc. Examples of good subjects include; "Getting an TABLE FULL error upon login", "Cannot restore a backup".
- Members are asked to post in English only so that posts can be well received and properly monitored.
- Spam is not tolerated here under any circumstance. This includes offering hosting services (charged and free), installation services, solicitation etc. Recruiting members for your own projects (moderators, designers, professional MOD work, etc.) is not permitted and is also considered spam. Users posting spam will be warned and their post removed.
- Members should post in a way that is respectful of other users. Flaming or abusing users in any way will not be tolerated and will lead to a warning. Vulgar language and inappropriate material is not allowed and will be removed. We try to maintain a family friendly atmosphere whenever it is possible within the main subject matter of this community. Please keep this in mind when participating.
- Each user is allowed to create one account. If you would like to change your username, please contact us and, most likely, we can do it for you while you can keep all of your profile data, posts, and other content.
- If a user violates our guidelines and shows a disregard for them, our staff and our community, they run the risk of losing their account. We reserve the right to deactivate any account and to edit or remove any content without warning. These guidelines are subject to change at any time without notice.
Thank you for visiting LattePanda.com!
I gues the above link to Windows IoT Core is a wrong hint. The IoT Core Image does not exist for LP.
Please Lattapanda team explain this part:
Please Lattapanda team explain this part:
How can we write to I2C via RemoteWiring when I2C is placed in area U1 which is not connected to ATmega32u4? Can you please provide some example?Windows Remote Arduino enables the following functionality out of the box:
1. GPIO – Analog and Digital I/O * digitalWrite - Digital Write * digitalRead - Digital Read * analogWrite - Analog Write * analogRead - Analog Read * pinMode - Set the mode for any pins. * Eventing - receive events when values change / are reported 2. I2C/TwoWire * Send/Receive data to and from other devices over I2C 3. Custom protocols via Firmata SysEx command
I think, there are 4 different I2C-Interfaces :
I2C-0, I2C-2, I2C-DDIO on 10-pin-header connected to the CPU
I2C on 24-pin-header connected to Arduino-D2 and -D3 (Meant by Lattepanda team in the quote ?)
( http://www.lattepanda.com/docs/#Connect ... ral_device )
Additional question : What voltage level is used on the CPU-I2Cs ?
Maybe 1,8V and we need level shifter IC ?
Or the CPU-I2C-Pins are 5V tolerant (I don't think so) ?
I2C-0, I2C-2, I2C-DDIO on 10-pin-header connected to the CPU
I2C on 24-pin-header connected to Arduino-D2 and -D3 (Meant by Lattepanda team in the quote ?)
( http://www.lattepanda.com/docs/#Connect ... ral_device )
Additional question : What voltage level is used on the CPU-I2Cs ?
Maybe 1,8V and we need level shifter IC ?
Or the CPU-I2C-Pins are 5V tolerant (I don't think so) ?
Last edited by Lutz on Sat Jun 18, 2016 3:05 pm, edited 1 time in total.
I still would be intereste in some info to connect to the I2C directly. I guess the way over RemoteWiring won't work either right now thanks to this littel bug viewtopic.php?f=6&t=209.
Somehow disappointing experience working whith this little device...
Somehow disappointing experience working whith this little device...
@LattePanda team : we still need an answer to this...cmoetzing wrote: (...)
How can we write to I2C via RemoteWiring when I2C is placed in area U1 which is not connected to ATmega32u4? Can you please provide some example?
Maybe not a complete example, but a link to a page with explanations

- LattePanda
- Site Admin
- Posts: 2690
- Joined: Wed Jan 20, 2016 9:09 am
sorry for delayed response, guys. we will get some documentation up in due course.
Enjoy Tinkering with LattePanda ! 

There is some example of using I2C without arduino (Atom Z8300 has it`s own I2C interface)
https://developer.microsoft.com/en-us/w ... elerometer
https://developer.microsoft.com/en-us/w ... elerometer
I believe the problem is USB/Serial driver support for the Arduino Leonardo board under the .NET core framework i.e. the IOT sample quoted should work on Windows 10 if LattePanda/Microsoft fixed the USB support. Until then, we are stuck with Arduino scripts and wpf/winforms serial communications using System.IO.Ports i.e. the old System.Core
See the UWP firmata thread for more info.
See the UWP firmata thread for more info.