0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

petalinux / microzed > スイッチSW1の状態をリードする

Last updated at Posted at 2017-08-08
動作環境
Petalinux 16.02
Microzed

自分用メモ。

Microzed上のスイッチ(SW1)の入力をリードするため
AVNETの手順書の通りにやってみたが全く反応なし。。。

調べたらGPIO51ではなくGPIO957にする必要がある。

echo 957 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio957/direction
cat /sys/class/gpio/gpio957/value

スイッチONで1
スイッチOFFで0

がリード出来た。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?