Taken from Capella's original draft submission
Largely cleaned up, modified to detect ACPI device.
Module depends on 'industrialio' module ('make install' will handle dependencies for you).
- Download all the files in this folder (or 'git clone' this repository)
- $ cd <download_location>/cm3218_ambient_light_sensor_driver
- $ make
- $ sudo make install
- $ sudo modprobe cm3218
- $ watch cat /sys/bus/iio/devices/iio:device0/in_illuminance0_input
- Move your tablet around under different light sources and watch the numbers change
- Enable time integration base modification
make
sudo insmod gpio_button_array.ko