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 add the driver by either rebuilding the kernel with IIO component enabled or just building the IIO modules and load them.
6 You must add the following config fragment. Known to work for kernel 3.19 and later.
8 CONFIG_IIO_DUMMY_EVGEN=m
9 CONFIG_IIO_SIMPLE_DUMMY=m
10 CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y
11 CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y
13 ### Add driver to kernel
14 Boot with new kernel, then load modules
17 $ modprobe iio_dummy_evgen
19 ### Load kernel modules
20 Depending our your kernel config, some of these modules may already be loaded.
22 $ insmod drivers/iio/industrialio.ko
23 $ insmod drivers/iio/kfifo_buf.ko
24 $ insmod drivers/staging/iio/iio_dummy_evgen.ko
25 $ insmod drivers/staging/iio/iio_dummy.ko
29 Mraa supports raw access
39 Activate the trigger in /sys/class/iio
40 $ echo 1 > trigger0/trigger_now