4eetah / thermo_lm75

Digital thermometer based on lm75ad chip with i2c interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thermo-lm75

Digital thermometer based on lm75ad chip with i2c interface

Setup

Make sure the i2c device is presented on the system
If you run rpi-cm3 there are two i2c char devices /dev/i2c-0, /dev/i2c-1
i2c-1 is preferable for ordinary stuff.

In case i2c interface isn't enabled on you pi:
echo -en "dtparam=i2c_arm=on\n" >> /boot/config.txt - enable i2c-1
echo -en "dtparam=i2c_vc=on\n" >> /boot/config.txt - enable i2c-0
reboot

In case you don't have i2c_dev kernel module loaded init script will try to load it on start

make && make install
/etc/init.d/thermo_lm75.sh start

The configuration file is at /etc/default/thermo_lm75.cfg
To remove project from the system: make remove

About

Digital thermometer based on lm75ad chip with i2c interface


Languages

Language:C 78.5%Language:Shell 8.6%Language:Python 8.4%Language:Makefile 4.6%