From 65a5e3af0fef9d4e08bb4c4a1e06ef9113f6bb6a Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 14 Jul 2022 06:56:25 -0400 Subject: [PATCH] =?UTF-8?q?[arduino]=20=E4=BC=98=E5=8C=96=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32f469-st-disco/applications/arduino_main.cpp | 6 ++---- .../stm32l475-atk-pandora/applications/arduino_main.cpp | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bsp/stm32/stm32f469-st-disco/applications/arduino_main.cpp b/bsp/stm32/stm32f469-st-disco/applications/arduino_main.cpp index 873d6b7676..6abb5ce94d 100644 --- a/bsp/stm32/stm32f469-st-disco/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f469-st-disco/applications/arduino_main.cpp @@ -10,17 +10,15 @@ #include -uint8_t led = LED_BUILTIN; - void setup(void) { /* put your setup code here, to run once: */ - pinMode(led, OUTPUT); + pinMode(LED_BUILTIN, OUTPUT); } void loop(void) { /* put your main code here, to run repeatedly: */ - digitalWrite(led, !digitalRead(led)); + digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); delay(100); } diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_main.cpp b/bsp/stm32/stm32l475-atk-pandora/applications/arduino_main.cpp index 873d6b7676..6abb5ce94d 100644 --- a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_main.cpp +++ b/bsp/stm32/stm32l475-atk-pandora/applications/arduino_main.cpp @@ -10,17 +10,15 @@ #include -uint8_t led = LED_BUILTIN; - void setup(void) { /* put your setup code here, to run once: */ - pinMode(led, OUTPUT); + pinMode(LED_BUILTIN, OUTPUT); } void loop(void) { /* put your main code here, to run repeatedly: */ - digitalWrite(led, !digitalRead(led)); + digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); delay(100); }