I know Udoo isn't as well-established as Pi (or some other boards) yet, but I'm really struggling to find out how to read the i2C data from the briks from C or similar lanuages. Apart from the very basic arduino stuff (stuff that I can do as easily and far cheaper with discrete circuits) I can't find any clue on where to start. On a related note, since Java is so painfully slow, is there anyother way to compile and upload its source? It's not eactly smooth on my i3 machine and on the Udoo it's laughable.
Not an expert but assuming you are trying to read I2C from the Linux (A9) side then you can use standard Linux libraries: https://xgoat.com/wp/2007/11/11/using-i2c-from-userspace-in-linux/
Sounds like that's worth a try and thank you. I've managed to get the Adafruit example to work via the M4 but when it spits the data out via the serial bus - some of the time - it gets mangled. By which I mean, bits are missing! So far, this seems to be related to the machine doing too much work (!) because once I turn the Java IDE off, it seems to work OK. Umm... perhaps I spoke to soon. Although it's better with nothing (except X right now) running I still see things like this on the serial monitor: {"pressure":100424.50,"altitude":75.25,"temperature":17.44} {"pressure":100425.00,"altitude":75.4{"pressure":100422.25,"altitude":75.44,"temperature":17.44 {"pressure":100423.75,"altitude":75.44,"temperature":17.44} See that the program fails and then recovers - this is just a snip, it often runs for many lines before spitting an error like this. The idea is to output this text as JSON (from the M4) so I can process it easily in C, or any other language come to that. Obviously, I don't want to 2nd guess the JSON ... the whole point is the data should be reliable.
The serial connection is indeed still a troublesome area on the Neo and the Udoo team has it high on its issue list to solve. Hopefully very soon.
You beat me to it Walter! Thank you for confirming that I wasn't actually losing what is left of my mind (!) I'll give the i2C a go.