1iio {#iio} 2=== 3IIO is the kernel's framework for supporting sensors. 4## Using dummy_iio driver 5For platforms without IIO hardware the iio_dummy driver can be used. You can 6add the driver by either rebuilding the kernel with IIO component enabled or 7just building the IIO modules and load them. You must add the following config 8fragment. Known to work for kernel 3.19 and later. 9<pre><code> 10CONFIG_IIO_DUMMY_EVGEN=m 11CONFIG_IIO_SIMPLE_DUMMY=m 12CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y 13CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y 14</code></pre> 15### Add driver to kernel 16Boot 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 22Depending 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 31Mraa supports raw access 32 33###Channels 34 35###Attributes 36 37###Events 38 39###Triggers 40 41Activate the trigger in /sys/class/iio 42$ echo 1 > trigger0/trigger_now 43 44 45