PINC is not used, missed to setup PINB - should work now

master
Steffen Pohle 4 years ago
parent 5e1142e4e2
commit a82dc79ea8

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

Loading…
Cancel
Save