We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The sensing system command return code should be 0 - off 1 - on
0 - off 1 - on
As for the commands, I've made the work with:
switch on sh -c "echo 1 > /sys/class/gpio/gpio226/value"
sh -c "echo 1 > /sys/class/gpio/gpio226/value"
switch off sh -c "echo 0 > /sys/class/gpio/gpio226/value"
sh -c "echo 0 > /sys/class/gpio/gpio226/value"
sensing expr `cat /sys/class/gpio/gpio226/value` == 1
expr `cat /sys/class/gpio/gpio226/value` == 1
The wiki writes Commands on *nix systems will be executed within the sh interpreter.
... but the only way to make them work was spawning my own with sh .
sh
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The sensing system command return code should be
0 - off 1 - on
As for the commands, I've made the work with:
switch on
sh -c "echo 1 > /sys/class/gpio/gpio226/value"
switch off
sh -c "echo 0 > /sys/class/gpio/gpio226/value"
sensing
expr `cat /sys/class/gpio/gpio226/value` == 1
The wiki writes Commands on *nix systems will be executed within the sh interpreter.
... but the only way to make them work was spawning my own with
sh
.The text was updated successfully, but these errors were encountered: