Power & Source of Big Ideas

Python on NanoPi

Moderators: chensy, FATechsupport

I would like to learn Python, and use it on the NanoPi. Most of the examples I am seing are for the RPI.
How can I use things like I2c & SPI for it.
As far as I aware Python and C, and likely most programming languages will be able to call your peripheral devices, ie SPI, I2C, etc. What is more important is do they do it properly!

If you are working on the original NanoPi, seeing it was my main development platform I would suggest first searching around for nanopi and I2C on this forum. I could not get it to work properly, maybe because I am not a kernel hacker. There were timing issues that were never resolved.

Consequently, I had to move to a RaspberryPi where SPI and I2C just seem to work properly.

I would suggest moving to a more recent FA product. However, learning on any platform I am sure will be beneficial.

Good luck!
Thanks. However Friendly Elec needs to create a GPIO library for python first.
Consider porting pigpio to the NanoPi. Are you running Debian Jessie on the NanoPi?
mikemoy wrote:
I would like to learn Python, and use it on the NanoPi. Most of the examples I am seing are for the RPI.
How can I use things like I2c & SPI for it.

It is not always easy as on an Raspberry, but it works.
This may help you a bit: Using I2C on NanoPi Duo with Python
I think one needs to be clear which model of NanoPi one is working on and which version of the operating system one is using.
davef wrote:
I think one needs to be clear which model of NanoPi one is working on and which version of the operating system one is using.


I don't think that is necessary because we are in the NanoPi Duo section of the forum, and there is only one operating system for it.
Right! I saw the title "Python on NanoPi" and did not see which forum it was associated with.

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 4 guests