楼主:
wtchen (没有存在感的人)
2015-08-04 03:42:24根据https://community.freescale.com/thread/315448
有两个方法:
1. One-shot conversions performed by reading the files in
/sys/bus/iio/devices/iio\:device0/
一个一个读取,不过超慢(我试过)
2. Continuous conversions of a single channel at a time using the
/dev/iio:device0 character device file
我试过这份文件提供的范例(page 24-25):
http://fr.slideshare.net/anilchowdary2050/127-iio-anewsubsystem
不过执行./generic-buffer 或直接cat /dev/iio\:device0 都会卡住
(我用RPi model B+)
请问有可能是哪出问题了呢?Thanks