Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 645 Bytes

PCF8591-IC.md

File metadata and controls

30 lines (22 loc) · 645 Bytes

8-bit A/D and D/A converter

Sensors That Use This IC

I2C Address

0x48..0x4F (configurable via input pins)

Usage

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

Notes