lemons227 发表于 2019-10-10 11:16:13

猫盘群辉led问题

猫盘已刷群辉,其他正常,但要控制led时

root@DS119j:/# i2cset -y -f pxa_i2c-i2c 0x45 0x01 0x01
Error: I2C bus name is not unique!
Usage: i2cset [-f] [-y] [-m MASK] [-r] I2CBUS CHIP-ADDRESS DATA-ADDRESS ...
I2CBUS is an integer or an I2C bus name
ADDRESS is an integer (0x03 - 0x77)
MODE is one of:
    c (byte, no value)
    b (byte data, default)
    w (word data)
    i (I2C block data)
    s (SMBus block data)
    Append p for SMBus PEC



求助大神

chwhsen 发表于 2019-10-10 12:10:57

没有0x01这个地址

lemons227 发表于 2019-10-10 16:56:56

我看"猫盘黑群晖添加logo的LED灯控制教程 已更新方法"这个帖子是这么写的

1、单色常亮

i2cset -y -f pxa_i2c-i2c 0x45 0x01 0x01    #开启LED控制器
i2cset -y -f pxa_i2c-i2c 0x45 0x31 0x03    #最大电流
i2cset -y -f pxa_i2c-i2c 0x45 0x32 0x03    #最大电流
i2cset -y -f pxa_i2c-i2c 0x45 0x33 0x03    #最大电流
i2cset -y -f pxa_i2c-i2c 0x45 0x30 0x07    #不呼吸
i2cset -y -f pxa_i2c-i2c 0x45 0x34 $1   #R
i2cset -y -f pxa_i2c-i2c 0x45 0x35 $2   #G
i2cset -y -f pxa_i2c-i2c 0x45 0x36 $3   #B

lemons227 发表于 2019-10-14 01:22:23

已解决
把pxa_i2c-i2c替换为0 即可
页: [1]
查看完整版本: 猫盘群辉led问题