Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
1,967
Widok
0
08/08/2015 4:11 pm
Topic starter
RPI, I2C, select channel for PCF8591
1 Answer
0
08/08/2015 4:12 pm
Topic starter
1. find your ID for PCF8591 ( http://muszak.eu/answers/raspberry-pi-dedect-i2c-array-then-get-value/ )
2. set channel using
i2cset -y 1 0x48 0x00
where 0x00 mean firest channel, 0x01 is for second channel etc.
3. then just read value from PCF, use two time same command to get proper value
i2cget -y 1 0x48 - dummy read, last value or power status
i2cget -y 1 0x48 - correct value