diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/arduino_main.cpp b/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/arduino_main.cpp index 1323d585aba439b2f13f03e051827c52b34cf560..baab793d3b174df2cac19dba640e3c6324d13f2f 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/arduino_main.cpp +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/arduino_main.cpp @@ -15,11 +15,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32f072-st-nucleo/applications/arduino_main.cpp b/bsp/stm32/stm32f072-st-nucleo/applications/arduino_main.cpp index 3219ffc63d4b7596a5752cda9f72d065c35358a4..bcd6e49470c195d8c34b49e35020c70bb46122b6 100644 --- a/bsp/stm32/stm32f072-st-nucleo/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f072-st-nucleo/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_main.cpp b/bsp/stm32/stm32f103-blue-pill/applications/arduino_main.cpp index 254c3d2e1352acb6843db8691e9386d1826d4218..2d716cd96ffbdf18cd0afcf6c53724dffe5fd552 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32f401-st-nucleo/applications/arduino_main.cpp b/bsp/stm32/stm32f401-st-nucleo/applications/arduino_main.cpp index b2b2ab8162aa3a874a9b7a36f797b40534b22a61..ebcbdf9d53d3745dfbff51cc4c3bf3dd3d72a78f 100644 --- a/bsp/stm32/stm32f401-st-nucleo/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f401-st-nucleo/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32f410-st-nucleo/applications/arduino_main.cpp b/bsp/stm32/stm32f410-st-nucleo/applications/arduino_main.cpp index ea6f0f5670f73bf63abdb2fa76c4fb26786cdbc9..decc15cfe163734d4a2a99b42198d2786c13b1a1 100644 --- a/bsp/stm32/stm32f410-st-nucleo/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f410-st-nucleo/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32f411-st-nucleo/applications/arduino_main.cpp b/bsp/stm32/stm32f411-st-nucleo/applications/arduino_main.cpp index cab8989469347a15d2ca73296cf932bcacfa2487..3d6048ac8f5c39bcf32b5cde6863c1ac20c9e8bd 100644 --- a/bsp/stm32/stm32f411-st-nucleo/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f411-st-nucleo/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32f411-weact-blackpill/applications/arduino_main.cpp b/bsp/stm32/stm32f411-weact-blackpill/applications/arduino_main.cpp index 5ffd0f7be0e12607001fe974e22723a773ea30b3..74997c0f3205163e113fa7cab25154cacea08c1b 100644 --- a/bsp/stm32/stm32f411-weact-blackpill/applications/arduino_main.cpp +++ b/bsp/stm32/stm32f411-weact-blackpill/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/stm32/stm32l431-BearPi/applications/arduino_main.cpp b/bsp/stm32/stm32l431-BearPi/applications/arduino_main.cpp index ed2c7cf02bf9e237b852fc55cbfa1dcfe4e5b9e3..120fa514d93007d9d397884c046a3c21d2862d5f 100644 --- a/bsp/stm32/stm32l431-BearPi/applications/arduino_main.cpp +++ b/bsp/stm32/stm32l431-BearPi/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); } diff --git a/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_main.cpp b/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_main.cpp index b491796946178fd2c0047ef5d81d465068f275cc..64e079733e1a75867f094d193ed859765144a41a 100644 --- a/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_main.cpp +++ b/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_main.cpp @@ -13,16 +13,12 @@ void setup(void) { /* put your setup code here, to run once: */ - pinMode(8, OUTPUT); - Serial.begin(); - Serial.println("Hello Arduino!"); + pinMode(LED_BUILTIN, OUTPUT); } void loop(void) { /* put your main code here, to run repeatedly: */ - digitalWrite(8, HIGH); - delay(500); - digitalWrite(8, LOW); - delay(500); + digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); + delay(100); } diff --git a/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_pinout/pins_arduino.h b/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_pinout/pins_arduino.h index eb26bbb40cd98dd61f75b5371ec1bd37513a18e0..62c7e2205bd2f002ba3560273cbdc3d83ed1f370 100644 --- a/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_pinout/pins_arduino.h +++ b/bsp/wch/risc-v/ch32v208w-r0/applications/arduino_pinout/pins_arduino.h @@ -37,6 +37,8 @@ #define F_CPU 144000000L /* CPU:144MHz */ +#define LED_BUILTIN D8 + /* Serial1 : PA9-TX PB0-RX */ #define RTDUINO_SERIAL2_DEVICE_NAME "uart1" diff --git a/bsp/wch/risc-v/ch32v307v-r1/applications/arduino_main.cpp b/bsp/wch/risc-v/ch32v307v-r1/applications/arduino_main.cpp index 1ef508264f6a80fc3086b9b18f08674220b6ec22..17883c8a7cc777c36e62824a5e3f6835d99eeab9 100644 --- a/bsp/wch/risc-v/ch32v307v-r1/applications/arduino_main.cpp +++ b/bsp/wch/risc-v/ch32v307v-r1/applications/arduino_main.cpp @@ -14,11 +14,11 @@ void setup(void) { /* put your setup code here, to run once: */ Serial.begin(); + Serial.println("Hello RTduino!"); } void loop(void) { /* put your main code here, to run repeatedly: */ - Serial.println("Hello Arduino!"); - delay(800); + delay(1000); }