8-bit A/D and D/A converter
0x48..0x4F (configurable via input pins)
Register device:
echo pcf8591 0x48 > /sys/bus/i2c/devices/i2c-<port+2>/new_device
Finding device class node:
for chip in $(find /sys/class/hwmon -name hwmon*)
do
if [[ "$(cat $chip/device/name)" == "pcf8591" ]]
then
# do whatever
fi
done
- Use lm-sensors to interface with hwmon devices.