Forum

RPI, I2C, select ch...
 
Notifications
Clear all

RPI, I2C, select channel for PCF8591

1 Posty
1 Users
0 Reactions
1,933 Widok
0
Topic starter

RPI, I2C, select channel for PCF8591

1 Answer
0
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

 

 

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: