2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-25 23:03:34 +01:00

node-red-arm keyboard patch

This commit is contained in:
kev
2016-08-22 11:37:10 +08:00
parent 02ae02e92b
commit 2921d700f5
7 changed files with 313 additions and 0 deletions

9
node-red/arm/patch/nrgpio Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
BASEDIR=$(dirname $0)
if [[ $1 == mouse || $1 == kbd ]]
then
exec python3 -u $BASEDIR/nrinput.py $@
else
sudo python -u $BASEDIR/nrgpio.py $@
fi