updated test code for arduino

This commit is contained in:
strawmanbobi
2025-11-26 17:50:49 +08:00
parent deeebc5c53
commit 1005945ad8
4 changed files with 13 additions and 4 deletions

View File

@@ -244,5 +244,12 @@
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IfStdIsConstantEvaluatedCanBeReplaced/@EntryIndexedValue" value="SUGGESTION" type="string" /> <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IfStdIsConstantEvaluatedCanBeReplaced/@EntryIndexedValue" value="SUGGESTION" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StdIsConstantEvaluatedWillAlwaysEvaluateToConstant/@EntryIndexedValue" value="WARNING" type="string" /> <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StdIsConstantEvaluatedWillAlwaysEvaluateToConstant/@EntryIndexedValue" value="WARNING" type="string" />
<option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" /> <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/ANONYMOUS_METHOD_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/CASE_BLOCK_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/EXPORT_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/INVOCABLE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/NAMESPACE_DECLARATION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/OTHER_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
<option name="/Default/CodeStyle/CodeFormatting/CppFormatting/REQUIRES_EXPRESSION_BRACES/@EntryValue" value="END_OF_LINE" type="string" />
</component> </component>
</project> </project>

View File

@@ -12,6 +12,8 @@
platform = renesas-ra platform = renesas-ra
board = uno_r4_wifi board = uno_r4_wifi
framework = arduino framework = arduino
upload_port = /dev/ttyACM0
monitor_port = /dev/ttyACM0
monitor_speed = 115200 monitor_speed = 115200
lib_deps = lib_deps =
WiFiS3 WiFiS3

View File

@@ -5,7 +5,7 @@
#ifndef ARDUINO_EXAMPLE_CONFIGURE_H #ifndef ARDUINO_EXAMPLE_CONFIGURE_H
#define ARDUINO_EXAMPLE_CONFIGURE_H #define ARDUINO_EXAMPLE_CONFIGURE_H
#define SECRET_SSID "Strawmanbobi" #define SECRET_SSID "Maomao的小房子"
#define SECRET_PASS "ghostcicy" #define SECRET_PASS "Maomao121207"
#endif //ARDUINO_EXAMPLE_CONFIGURE_H #endif //ARDUINO_EXAMPLE_CONFIGURE_H

View File

@@ -51,11 +51,11 @@ void setup() {
if (status == WL_CONNECTED) { if (status == WL_CONNECTED) {
// If connected successfully // If connected successfully
Serial.println("\nConnection Successful!"); Serial.println("\nConnection Successful!");
printWiFiStatus(); printWiFiStatus();
} else { } else {
// If connection failed // If connection failed
Serial.print("\nConnection Failed! Status: "); Serial.print("\nConnection Failed! Status: ");
Serial.println(status); Serial.println(status);
} }
} }