Coder Social home page Coder Social logo

bitbank2 / armbianio Goto Github PK

View Code? Open in Web Editor NEW
78.0 9.0 27.0 223 KB

A C (+ Python and Java) library for simplifying access to I2C, SPI and GPIO on boards supported by Armbian

License: GNU General Public License v3.0

Makefile 0.45% C 45.05% Python 34.70% Shell 8.45% Java 11.34%

armbianio's People

Contributors

attilagyorffy avatar bitbank2 avatar clouetb avatar leperet avatar melroy89 avatar pbezza avatar sgjava avatar tido- avatar tonymac32 avatar zeekoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

armbianio's Issues

File python/ctypesgen.py missing

When building the python wrapper using wrapper.sh, I'm getting "./wrapper.sh: 39: ctypesgen.py: not found". When checked the repo, I cannot find this file under the /python directory.

"error setting direction on GPIO pin..."

When calling AIOAddGPIO on the Raspberry Pi, I keep getting the error error setting direction on GPIO pin 8 and other pins. Any idea what might be the cause? Thanks!

Use of ctypesgen (a dead-end project)

Python2 is just about EOL. Python3 is exceptionally mature now, and on version 3.6. Using ctypesgen in this project means you can't use Python3, as it is not compatible. A quick visit to the ctypesgen repo shows this has been a known issue for 3 years, and nobody has changed anything on that front. Frustrated users have migrated to CFFI instead, as it accomplishes the same thing, but is under active development, and therefore supports Python3.

not working on RPi's

Tried the demo on a Pi 3B+ and a Pi Zero WH. Both errored thusly:

Unrecognized board type, aborting...
Problem initializing ArmbianIO library

uname: Linux servo 5.4.83-v7+

FWIW, there is no /run/machine-id with this kernel.

Warnings when compiling Armbianio

I just cloned the ArmbianIO repo and used make to compile on my NanoPi Neo 2 (clean Armbian install + apt update/upgrade) but received two warnings in the process:

armbianio.c: In function ‘GPIOThread’:
armbianio.c:460:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int iPin = (int)param; // pin number is passed in
^
armbianio.c: In function ‘AIOAddGPIOCallback’:
armbianio.c:520:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
pthread_create(&tinfo, NULL, GPIOThread, (void *)iPin);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.