[bsp][rtduino] update arduino_main.cpp
This commit is contained in:
parent
fab0e506be
commit
0429452465
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue