balena-io-experimental / artik-gpio-python Goto Github PK
View Code? Open in Web Editor NEWSimple example to blink an LED with the Samsung Artik 5 + 10
Simple example to blink an LED with the Samsung Artik 5 + 10
Problem:
Using GPIO results in bash: echo: write error: Device or resource busy
I tried to run this program on my Artik 710 and failed with:
Systemd init system enabled.
main systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
main Detected virtualization 'other'.
main Detected architecture 'arm64'.
main Set hostname to <0176368>.
main Traceback (most recent call last):
main File "main.py", line 9, in <module>
main LED = GPIO(pinNum, "out")
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
main self._open(pin, direction)
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
main raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
main periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
main Traceback (most recent call last):
main File "main.py", line 9, in <module>
main LED = GPIO(pinNum, "out")
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
main self._open(pin, direction)
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
main raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
main periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
main Traceback (most recent call last):
main File "main.py", line 9, in <module>
main LED = GPIO(pinNum, "out")
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
main self._open(pin, direction)
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
main raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
main periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
main Traceback (most recent call last):
main File "main.py", line 9, in <module>
main LED = GPIO(pinNum, "out")
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
main self._open(pin, direction)
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
main raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
main periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
main Traceback (most recent call last):
main File "main.py", line 9, in <module>
main LED = GPIO(pinNum, "out")
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 43, in __init__
main self._open(pin, direction)
main File "/usr/local/lib/python2.7/site-packages/periphery/gpio.py", line 70, in _open
main raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror)
main periphery.gpio.GPIOError: [Errno 16] Exporting GPIO: Deviceor resource busy
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.