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 0ae7287 commit 5385715
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/chip/CH422G.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class ESP_IOExpander_CH422G: public ESP_IOExpander {
/**
* @brief Begin IO expander
*
* @note The driver initialization by default sets CH422G's IO0-7 to output high-level mode.
*
*/
void begin(void) override;

Expand All @@ -83,6 +85,10 @@ class ESP_IOExpander_CH422G: public ESP_IOExpander {
/**
* @brief Enable IO0-7 input mode
*
* @note The driver initialization by default sets CH422G's IO0-7 to output high-level mode.
* @note Since the input/output mode of CH422G's IO0-7 must remain consistent, the driver will only set IO0-7 to
* input mode when it determines that all pins are configured as input.
*
*/
void enableAllIO_Input(void);

Expand Down

0 comments on commit 5385715

Please sign in to comment.