bitbank2 / armbianio Goto Github PK
View Code? Open in Web Editor NEWA 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
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
Do you consider to release armbianIO as a project on official maven repository?
Could you add support for the Banana Pi CM4?
See: https://wiki.banana-pi.org/Banana_Pi_BPI-CM4 (basically a replacement of the Raspberry Pi CM4)
Since this board is missing from your list (Banana Pi CM4
)? Including the IO board (Banana Pi CM4IO
).
https://github.com/bitbank2/ArmbianIO/blob/master/armbianio.c#L156
Example of the Banana Pi CM4 IO board name:
cat /run/machine.id
Banana Pi CM4IO
Thanks!
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.
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!
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.
Any plans to write RPi.GPIO wrapper since a lot of Python libraries depend on it.
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.
Add AIORemoveGPIOCallback to kill thread and do any needed cleanup.
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);
./demo
Running on a NanoPi Duo
then hangs even if I push button.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.