Page 1 of 1

spi

Posted: Tue Dec 27, 2016 8:00 pm
by anemos
How is spi working with nano pi neo air?
is there a C library to load to make it working?
what about the i2c buses is that supported yet?

Re: spi

Posted: Wed Dec 28, 2016 6:21 am
by thomaspfeiffer
i2c is working fine with Friendlyarm's Ubuntu. You just have to:

Code: Select all

apt-get install i2c-tools -y
apt-get install python-smbus -y
usermod -aG i2c fa # for convenience


I tested a couple of i2c sensors and an i2c display without any issues:
https://github.com/thomaspfeiffer-git/r ... display.py

With Armbian, not all i2c devices are recognized properly (ie i2cdetect does not display all devices).

I didn't test spi so far and i still have some issues with 1-wire (DS18B20):
viewtopic.php?f=47&t=393

Best regards, Thomas