summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-06-29 16:52:08 +0700
committerhathach <[email protected]>2020-06-29 16:52:08 +0700
commit50b569ad1be86930ae968655ec574362a2b57aa6 (patch)
tree8ac533e162cccabd4e33fedce55bda4cd9e00f2d /hw
parent2b27eed01aa25d12c7e78414875d83e9c2604830 (diff)
added esp32s2 kaluga bsp
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/esp32s2_saola_1/CMakeLists.txt2
-rw-r--r--hw/bsp/esp32s2_saola_1/esp32s2_saola_1.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/hw/bsp/esp32s2_saola_1/CMakeLists.txt b/hw/bsp/esp32s2_saola_1/CMakeLists.txt
index 379b2e3d0..629b3104a 100644
--- a/hw/bsp/esp32s2_saola_1/CMakeLists.txt
+++ b/hw/bsp/esp32s2_saola_1/CMakeLists.txt
@@ -1,4 +1,4 @@
-idf_component_register(SRCS "esp32s2_saola_1.c" "led_strip/src/led_strip_rmt_ws2812.c"
+idf_component_register(SRCS "${BOARD}.c" "led_strip/src/led_strip_rmt_ws2812.c"
INCLUDE_DIRS "led_strip/include"
PRIV_REQUIRES "driver"
REQUIRES freertos src)
diff --git a/hw/bsp/esp32s2_saola_1/esp32s2_saola_1.c b/hw/bsp/esp32s2_saola_1/esp32s2_saola_1.c
index bbcdab6d2..a30d3c81e 100644
--- a/hw/bsp/esp32s2_saola_1/esp32s2_saola_1.c
+++ b/hw/bsp/esp32s2_saola_1/esp32s2_saola_1.c
@@ -39,8 +39,8 @@
// Note: On the production version (v1.2) WS2812 is connected to GPIO 18,
// however earlier revision v1.1 WS2812 is connected to GPIO 17
-//#define LED_PIN 18 // v1.2 and later
-#define LED_PIN 17 // v1.1
+//#define LED_PIN 17 // v1.1
+#define LED_PIN 18 // v1.2 and later
#define BUTTON_PIN 0
#define BUTTON_STATE_ACTIVE 0