Skip to content

Commit 4a4679f

Browse files
authored
Merge pull request #610 from espressif/fix/korvo-2-led
fix(esp32_s3_korvo_2): Fixed LED states for V3.1 board
2 parents b30d7ff + 275612a commit 4a4679f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

bsp/esp32_s3_korvo_2/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The ESP32-S3-Korvo-2 is a multimedia development board based on the ESP32-S3 chi
1515
</td></tr>
1616
</table>
1717

18+
> **_NOTE:_** Compatible with V3.0 a V3.1 boards.
19+
1820
![image](doc/pic.png)
1921

2022
## Capabilities and dependencies

bsp/esp32_s3_korvo_2/esp32_s3_korvo_2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,14 +623,14 @@ esp_err_t bsp_leds_init(void)
623623
BSP_NULL_CHECK(bsp_io_expander_init(), ESP_ERR_INVALID_STATE);
624624
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_dir(io_expander, BSP_LED_RED, IO_EXPANDER_OUTPUT));
625625
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_dir(io_expander, BSP_LED_BLUE, IO_EXPANDER_OUTPUT));
626-
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_level(io_expander, BSP_LED_RED, true));
627-
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_level(io_expander, BSP_LED_BLUE, true));
626+
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_level(io_expander, BSP_LED_RED, false));
627+
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_level(io_expander, BSP_LED_BLUE, false));
628628
return ESP_OK;
629629
}
630630

631631
esp_err_t bsp_led_set(const bsp_led_t led_io, const bool on)
632632
{
633-
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_level(io_expander, led_io, !on));
633+
BSP_ERROR_CHECK_RETURN_ERR(esp_io_expander_set_level(io_expander, led_io, on));
634634
return ESP_OK;
635635
}
636636

bsp/esp32_s3_korvo_2/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "4.0.1~2"
1+
version: "4.0.2"
22
description: Board Support Package (BSP) for ESP32-S3-Korvo-2
33
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_korvo_2
44

0 commit comments

Comments
 (0)