Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzw655 committed Oct 17, 2024
1 parent 5385715 commit 2c65877
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chip/CH422G.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ void ESP_IOExpander_CH422G::enableAllIO_Input(void)
i2c_master_write_to_device(ch422g->i2c_num, CH422G_REG_WR_SET, &data, sizeof(data), pdMS_TO_TICKS(I2C_TIMEOUT_MS))
);
ch422g->regs.wr_set = data;
// Delay 1ms to wait for the IO expander to switch to input mode
vTaskDelay(pdMS_TO_TICKS(2));
}

void ESP_IOExpander_CH422G::enableAllIO_Output(void)
Expand Down

0 comments on commit 2c65877

Please sign in to comment.