Skip to content

Commit 471d0c1

Browse files
authored
Merge pull request #3 from RTduino/serial.println
更新arduino_main.cpp在没有LED时的串口输出模板
2 parents 8c7a894 + ab2ac40 commit 471d0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/fileout.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ void Widget::write_data_to_maincpp()
486486
else
487487
{
488488
out << " Serial.begin();\n";
489+
out << " Serial.println(\"Hello RTduino!\");\n";
489490
}
490491

491492
out << "}\n\n";
@@ -499,8 +500,7 @@ void Widget::write_data_to_maincpp()
499500
}
500501
else
501502
{
502-
out << " Serial.println(\"Hello Arduino!\");\n";
503-
out << " delay(800);\n";
503+
out << " delay(1000);\n";
504504
}
505505
out << "}\n";
506506
}

0 commit comments

Comments
 (0)