50
Driver Installation
4.2.5
Touch Panel
The touch panel driver is built-in by default. A resistance touch
panel calibration tool is provided.
4.2.6
Ambient Light Sensor
The system can connect to the Everlight DCDIC-17 ambient light
sensor. A sample application is provided to read out two channels
ADC value and calculate the lux value.
// install PenMount calibration tool
# cd $PENMOUNT/pmLinux-Debian8/
// at this step, it will take a while, please patient
# ./install.sh
// after finished installation, please reboot system
# reboot
// visit folder to compile application
# cd $APP_ALS/
# gcc als_read.c -o als_read
//perform test application to read out Lux value
# ./als_read
//sample logs
root@adlink-SP-AL:/home/adlink/ALS# ./als_read
[DBG] :seeking /dev/i2c-1
[DBG] :write data 0x00 fail
[DBG] :read data failure
[DBG] :seeking /dev/i2c-2
[DBG] :write data 0x00 fail
[DBG] :read data failure
[DBG] :seeking /dev/i2c-3
[DBG] :write data 0x00 fail
[DBG] :read data failure
[DBG] :seeking /dev/i2c-4
[DBG] :write data 0x00 fail
Summary of Contents for DMI-1040
Page 8: ...viii Table of Contents This page intentionally left blank...
Page 10: ...x List of Figures This page intentionally left blank...
Page 12: ...xii List of Tables This page intentionally left blank...
Page 27: ...Getting Started 15 DMI 1040 6 Disconnect the cable connecting the speakers to the main board...
Page 40: ...28 Getting Started This page intentionally left blank...
Page 45: ...Driver Installation 33 DMI 1040 Click Next The system will begin installing the Wi Fi driver...
Page 66: ...54 Driver Installation This page intentionally left blank...