Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AndroidでJNIとNDkを使用してsysディレクトリのファイルを編集するにはどうすればよいですか。実際には、これらのファイルを編集する必要があります"/sys/class/gpio/gpio41/value"。
"/sys/class/gpio/gpio41/value"
モードを変更することで、chmod 777 / sys / class / gpio / gpio41/valueを使用してファイルを編集できるようになりました。
ちょっとしたヒント: chmod 666 を使用してください... 読み取り/書き込み許可を取得しますが、HW ピンの実行許可は必要ありません。
よろしくマーティン