Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ typedef enum {
*/
typedef enum {
IO_EXPANDER_INPUT, /*!< Input direction */
IO_EXPANDER_OUTPUT, /*!< Output dircetion */
IO_EXPANDER_OUTPUT, /*!< Output direction */
} esp_io_expander_dir_t;

/**
Expand Down
4 changes: 2 additions & 2 deletions components/io_expander/esp_io_expander_ht8574/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ Print all pins's status to the log:
esp_io_expander_print_state(io_expander);
```

Set pin 0 and pin 1 with output dircetion and low level:
Set pin 0 and pin 1 with output direction and low level:

```c
esp_io_expander_set_dir(io_expander, IO_EXPANDER_PIN_NUM_0 | IO_EXPANDER_PIN_NUM_1, IO_EXPANDER_OUTPUT);
esp_io_expander_set_level(io_expander, IO_EXPANDER_PIN_NUM_0 | IO_EXPANDER_PIN_NUM_1, 0);
```

Set pin 2 and pin 3 with input dircetion:
Set pin 2 and pin 3 with input direction:

```c
uint32_t pin_levels = 0;
Expand Down
4 changes: 2 additions & 2 deletions components/io_expander/esp_io_expander_tca9554/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ Print all pins's status to the log:
esp_io_expander_print_state(io_expander);
```

Set pin 0 and pin 1 with output dircetion and low level:
Set pin 0 and pin 1 with output direction and low level:

```c
esp_io_expander_set_dir(io_expander, IO_EXPANDER_PIN_NUM_0 | IO_EXPANDER_PIN_NUM_1, IO_EXPANDER_OUTPUT);
esp_io_expander_set_level(io_expander, IO_EXPANDER_PIN_NUM_0 | IO_EXPANDER_PIN_NUM_1, 0);
```

Set pin 2 and pin 3 with input dircetion:
Set pin 2 and pin 3 with input direction:

```c
uint32_t pin_levels = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ Print all pins's status to the log:
esp_io_expander_print_state(io_expander);
```

Set pin 0 and pin 1 with output dircetion and low level:
Set pin 0 and pin 1 with output direction and low level:

```c
esp_io_expander_set_dir(io_expander, IO_EXPANDER_PIN_NUM_0 | IO_EXPANDER_PIN_NUM_1, IO_EXPANDER_OUTPUT);
esp_io_expander_set_level(io_expander, IO_EXPANDER_PIN_NUM_0 | IO_EXPANDER_PIN_NUM_1, 0);
```

Set pin 2 and pin 3 with input dircetion:
Set pin 2 and pin 3 with input direction:

```c
uint32_t pin_levels = 0;
Expand Down
Loading