forked from ev3dev/ev3dev
-
Notifications
You must be signed in to change notification settings - Fork 0
PCF8591 IC
David Lechner edited this page Feb 16, 2014
·
1 revision
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.