We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ab884 commit 7fcb8e1Copy full SHA for 7fcb8e1
wokwi-ili9341/lcd-uno/ili9341.test.yaml
@@ -13,3 +13,4 @@ steps:
13
- take-screenshot:
14
part-id: 'lcd1'
15
compare-with: 'screenshots/count-1.png'
16
+ - wait-serial: 'Test completed'
wokwi-ili9341/lcd-uno/src/main.cpp
@@ -48,5 +48,16 @@ void loop() {
48
Serial.println(counter);
49
50
counter++;
51
+
52
+ // Stop after counter reaches 2 (test only needs 0 and 1)
53
+ // After printing Counter: 1, counter becomes 2, so stop when counter > 1
54
+ if (counter > 1) {
55
+ Serial.println("Test completed");
56
+ while (1) {
57
+ // Stop execution
58
+ delay(1000);
59
+ }
60
61
62
delay(1000);
63
}
0 commit comments