Przeglądaj źródła

[bsp][rtduino] update arduino_main.cpp

Meco Man 2 lat temu
rodzic
commit
0429452465

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 2 - 2
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);
 }

+ 3 - 7
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);
 }

+ 2 - 0
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"
 

+ 2 - 2
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);
 }