RPI, I2C, select channel for PCF8591« Wróć do listy pytań
RPI, I2C, select channel for PCF8591
|
▲ ▼ |
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
|