revert some attempts, update i2c
This commit is contained in:
@@ -113,13 +113,13 @@ uint8_t init_mcp23018(void) {
|
||||
// sreg_prev=SREG;
|
||||
// cli();
|
||||
|
||||
// if (i2c_initialized == 0) {
|
||||
// i2c_init(); // on pins D(1,0)
|
||||
// i2c_initialized = true;
|
||||
// _delay_ms(1000);
|
||||
// }
|
||||
i2c_init(); // on pins D(1,0)
|
||||
_delay_ms(1000);
|
||||
if (i2c_initialized == 0) {
|
||||
i2c_init(); // on pins D(1,0)
|
||||
i2c_initialized = true;
|
||||
_delay_ms(1000);
|
||||
}
|
||||
// i2c_init(); // on pins D(1,0)
|
||||
// _delay_ms(1000);
|
||||
|
||||
// set pin direction
|
||||
// - unused : input : 1
|
||||
|
||||
Reference in New Issue
Block a user