|
|
@ -200,14 +200,14 @@ int main( void ) {
|
|
|
|
offdelay = i2c_system[I2C_SREG_DIOFFDELAY] << 8;
|
|
|
|
offdelay = i2c_system[I2C_SREG_DIOFFDELAY] << 8;
|
|
|
|
|
|
|
|
|
|
|
|
// S1 - S8
|
|
|
|
// S1 - S8
|
|
|
|
i = 0; if (!(PINC & (1 << 0))) cnt[i] = offdelay;
|
|
|
|
i = 0; if (!(PINB & (1 << 0))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 1))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 1))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 2))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 2))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 3))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 3))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 4))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 4))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 5))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 5))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 6))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 6))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINC & (1 << 7))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINB & (1 << 7))) cnt[i] = offdelay;
|
|
|
|
|
|
|
|
|
|
|
|
// S9 - S16
|
|
|
|
// S9 - S16
|
|
|
|
i++; if (!(PINA & (1 << 0))) cnt[i] = offdelay;
|
|
|
|
i++; if (!(PINA & (1 << 0))) cnt[i] = offdelay;
|
|
|
|