Skip to content
New issue

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

Didn't work for me. #1

Open
redpola opened this issue Jan 2, 2024 · 1 comment
Open

Didn't work for me. #1

redpola opened this issue Jan 2, 2024 · 1 comment

Comments

@redpola
Copy link

redpola commented Jan 2, 2024

Used as-is, and...

pi@raspberrypi:~ $ sudo bash piMote.sh all on
piMote.sh: line 48: echo: write error: Device or resource busy
piMote.sh: line 50: /sys/class/gpio/gpio27/direction: No such file or directory
piMote.sh: line 59: echo: write error: Operation not permitted
piMote.sh: line 60: echo: write error: Operation not permitted
piMote.sh: line 61: echo: write error: Operation not permitted
piMote.sh: line 62: /sys/class/gpio/gpio27/value: No such file or directory
piMote.sh: line 69: echo: write error: Operation not permitted
piMote.sh: line 71: echo: write error: Operation not permitted
piMote.sh: line 74: echo: write error: Operation not permitted
piMote.sh: line 75: echo: write error: Operation not permitted
piMote.sh: line 76: echo: write error: Operation not permitted
piMote.sh: line 77: /sys/class/gpio/gpio27/value: No such file or directory

@redpola
Copy link
Author

redpola commented Jan 2, 2024

Hm, maybe because my pins aren't the same as yours?

pi@raspberrypi:~ $ ls -l /sys/class/gpio/
total 0
--w--w---- 1 root gpio 4096 Jan 2 10:34 export
lrwxrwxrwx 1 root root 0 Jan 2 10:22 gpio17 -> ../../devices/platform/soc/20200000.gpio/gpiochip0/gpio/gpio17
lrwxrwxrwx 1 root root 0 Jan 2 10:22 gpio22 -> ../../devices/platform/soc/20200000.gpio/gpiochip0/gpio/gpio22
lrwxrwxrwx 1 root root 0 Jan 2 10:22 gpio23 -> ../../devices/platform/soc/20200000.gpio/gpiochip0/gpio/gpio23
lrwxrwxrwx 1 root root 0 Jan 2 10:22 gpio24 -> ../../devices/platform/soc/20200000.gpio/gpiochip0/gpio/gpio24
lrwxrwxrwx 1 root root 0 Jan 2 10:22 gpio25 -> ../../devices/platform/soc/20200000.gpio/gpiochip0/gpio/gpio25
lrwxrwxrwx 1 root gpio 0 Nov 28 13:41 gpiochip0 -> ../../devices/platform/soc/20200000.gpio/gpio/gpiochip0
--w--w---- 1 root gpio 4096 Nov 28 13:41 unexport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant