1 iio {#iio} 2 === 3 IIO is the kernel's framework for supporting sensors. 4 ## Using dummy_iio driver 5 For platforms without IIO hardware the iio_dummy driver can be used. You can 6 add the driver by either rebuilding the kernel with IIO component enabled or 7 just building the IIO modules and load them. You must add the following config 8 fragment. Known to work for kernel 3.19 and later. 9 <pre><code> 10 CONFIG_IIO_DUMMY_EVGEN=m 11 CONFIG_IIO_SIMPLE_DUMMY=m 12 CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y 13 CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y 14 </code></pre> 15 ### Add driver to kernel 16 Boot with new kernel, then load modules 17 <pre><code> 18 $ modprobe iio_dummy 19 $ modprobe iio_dummy_evgen 20 </code></pre> 21 ### Load kernel modules 22 Depending our your kernel config, some of these modules may already be loaded. 23 <pre><code> 24 $ insmod drivers/iio/industrialio.ko 25 $ insmod drivers/iio/kfifo_buf.ko 26 $ insmod drivers/staging/iio/iio_dummy_evgen.ko 27 $ insmod drivers/staging/iio/iio_dummy.ko 28 </code></pre> 29 ## 'RAW' access 30 31 Mraa supports raw access 32 33 ###Channels 34 35 ###Attributes 36 37 ###Events 38 39 ###Triggers 40 41 Activate the trigger in /sys/class/iio 42 $ echo 1 > trigger0/trigger_now 43 44 45