By changing the mode you can now edit the file using: chmod 777 /sys/class/gpio/gpio41/value
How to write to a file in the Directory "/sys/....."
-
09-03-2022 - |
Frage
How can i edit the file in the sys directory using JNI and NDk in android.
Actually i Need to edit these file "/sys/class/gpio/gpio41/value"
.
Lösung
Andere Tipps
just a little hint: use chmod 666 ... You will get read/write permission but you don't need execute permission on HW-pins.
Regards Martin
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow