Subversion Repositories HomeAutomation

Rev

Rev 1703 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1703 Rev 1711
Line 58... Line 58...
58
    if (id < 8)
58
    if (id < 8)
59
    {
59
    {
60
        unsigned char msgBuf[5];
60
        unsigned char msgBuf[5];
61
        /*  */
61
        /*  */
62
        uint8_t reg;
62
        uint8_t reg;
63
        uint8_t shift = id&0b11;
63
        uint8_t shift = (id&0b11)<<1;
64
        uint8_t data;
64
        uint8_t data;
65
        if (id < 4)
65
        if (id < 4)
66
        {
66
        {
67
            reg = PCA9634_REG_LEDOUT0;
67
            reg = PCA9634_REG_LEDOUT0;
68
            pca9634_LEDOUT0 = pca9634_LEDOUT0|(mode<<shift);
68
            pca9634_LEDOUT0 = pca9634_LEDOUT0|(mode<<shift);