Skip to content

Commit 7258ffc

Browse files
committed
feat(tests): expand GPIO test scenarios
1 parent 422e526 commit 7258ffc

File tree

10 files changed

+549
-61
lines changed

10 files changed

+549
-61
lines changed

tests/validation/gpio/diagram.esp32.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,26 @@
1313
{
1414
"type": "wokwi-pushbutton",
1515
"id": "btn1",
16-
"top": -13,
17-
"left": -19.2,
16+
"top": 83,
17+
"left": 9.6,
1818
"attrs": { "color": "green" }
19+
},
20+
{
21+
"type": "wokwi-led",
22+
"id": "led1",
23+
"top": -39.6,
24+
"left": -41.4,
25+
"rotate": 90,
26+
"attrs": { "color": "red" }
1927
}
2028
],
2129
"connections": [
2230
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
2331
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
2432
[ "btn1:1.l", "esp32:0", "blue", [ "h-19.2", "v48", "h-38.4" ] ],
25-
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
33+
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ],
34+
[ "esp32:GND.2", "led1:C", "black", [ "v0" ] ],
35+
[ "esp32:4", "led1:A", "green", [ "h0" ] ]
2636
],
2737
"dependencies": {}
28-
}
38+
}

tests/validation/gpio/diagram.esp32c3.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@
1616
"top": -22.6,
1717
"left": -19.2,
1818
"attrs": { "color": "green" }
19+
},
20+
{
21+
"type": "wokwi-led",
22+
"id": "led1",
23+
"top": 28,
24+
"left": -286.6,
25+
"rotate": 270,
26+
"attrs": { "color": "red" }
1927
}
2028
],
2129
"connections": [
2230
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
2331
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
2432
[ "btn1:1.l", "esp32:0", "blue", [ "h-28.8", "v144", "h-144", "v-95.7" ] ],
25-
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
33+
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ],
34+
[ "esp32:GND.4", "led1:C", "black", [ "h0" ] ],
35+
[ "esp32:4", "led1:A", "green", [ "v0" ] ]
2636
],
2737
"dependencies": {}
28-
}
38+
}

tests/validation/gpio/diagram.esp32c6.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@
1616
"top": -22.6,
1717
"left": -19.2,
1818
"attrs": { "color": "green" }
19+
},
20+
{
21+
"type": "wokwi-led",
22+
"id": "led1",
23+
"top": 56.8,
24+
"left": -286.6,
25+
"rotate": 270,
26+
"attrs": { "color": "red" }
1927
}
2028
],
2129
"connections": [
2230
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
2331
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
2432
[ "btn1:1.l", "esp32:0", "blue", [ "h-19.2", "v-96", "h-163.2", "v93.77" ] ],
25-
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
33+
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ],
34+
[ "esp32:GND.1", "led1:C", "black", [ "h0" ] ],
35+
[ "esp32:4", "led1:A", "green", [ "h0" ] ]
2636
],
2737
"dependencies": {}
28-
}
38+
}

tests/validation/gpio/diagram.esp32h2.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@
1616
"top": -22.6,
1717
"left": -19.2,
1818
"attrs": { "color": "green" }
19+
},
20+
{
21+
"type": "wokwi-led",
22+
"id": "led1",
23+
"top": -0.8,
24+
"left": -267.4,
25+
"rotate": 270,
26+
"attrs": { "color": "red" }
1927
}
2028
],
2129
"connections": [
2230
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
2331
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
2432
[ "btn1:1.l", "esp32:0", "blue", [ "h-19.2", "v-96", "h-163.2", "v93.77" ] ],
25-
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
33+
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ],
34+
[ "esp32:GND.2", "led1:C", "black", [ "h0" ] ],
35+
[ "esp32:4", "led1:A", "green", [ "h-29.14", "v-26.57" ] ]
2636
],
2737
"dependencies": {}
28-
}
38+
}

tests/validation/gpio/diagram.esp32p4.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616
"top": -128.2,
1717
"left": -19.2,
1818
"attrs": { "color": "green", "bounce": "1" }
19-
}
19+
},
20+
{ "type": "wokwi-led", "id": "led1", "top": -138, "left": -92.2, "attrs": { "color": "red" } }
2021
],
2122
"connections": [
2223
[ "esp32:38", "$serialMonitor:TX", "", [] ],
2324
[ "esp32:37", "$serialMonitor:RX", "", [] ],
2425
[ "btn1:2.r", "esp32:GND.3", "black", [ "h19.4", "v29" ] ],
25-
[ "esp32:0", "btn1:1.l", "blue", [ "h-48", "v-67.2" ] ]
26+
[ "esp32:0", "btn1:1.l", "blue", [ "h-48", "v-67.2" ] ],
27+
[ "esp32:GND.1", "led1:C", "black", [ "v0" ] ],
28+
[ "esp32:4", "led1:A", "green", [ "v-19.2", "h-48" ] ]
2629
],
2730
"dependencies": {}
28-
}
31+
}

tests/validation/gpio/diagram.esp32s2.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,23 @@
1616
"top": -22.6,
1717
"left": -19.2,
1818
"attrs": { "color": "green" }
19+
},
20+
{
21+
"type": "wokwi-led",
22+
"id": "led1",
23+
"top": -0.8,
24+
"left": -277,
25+
"rotate": 270,
26+
"attrs": { "color": "red" }
1927
}
2028
],
2129
"connections": [
2230
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
2331
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
2432
[ "btn1:1.l", "esp32:0", "blue", [ "h-28.8", "v-57.6", "h-144", "v42.71" ] ],
25-
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ]
33+
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v173", "h-269.2", "v-98.23" ] ],
34+
[ "esp32:GND.1", "led1:C", "black", [ "h-67.47", "v-167.51" ] ],
35+
[ "esp32:4", "led1:A", "green", [ "h0" ] ]
2636
],
2737
"dependencies": {}
28-
}
38+
}

tests/validation/gpio/diagram.esp32s3.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,26 @@
1313
{
1414
"type": "wokwi-pushbutton",
1515
"id": "btn1",
16-
"top": -22.6,
17-
"left": -19.2,
16+
"top": 83,
17+
"left": 9.6,
1818
"attrs": { "color": "green" }
19+
},
20+
{
21+
"type": "wokwi-led",
22+
"id": "led1",
23+
"top": 66.4,
24+
"left": -257.8,
25+
"rotate": 270,
26+
"attrs": { "color": "red", "flip": "" }
1927
}
2028
],
2129
"connections": [
2230
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
2331
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
2432
[ "btn1:1.l", "esp32:0", "blue", [ "h-38.4", "v105.78" ] ],
25-
[ "btn1:2.r", "esp32:GND.1", "black", [ "h19.4", "v221", "h-269.2", "v-57.42" ] ]
33+
[ "btn1:2.r", "esp32:GND.3", "green", [ "h19.4", "v48.2", "h-144.4", "v0.18" ] ],
34+
[ "esp32:4", "led1:A", "green", [ "h0" ] ],
35+
[ "esp32:GND.1", "led1:C", "black", [ "h0" ] ]
2636
],
2737
"dependencies": {}
28-
}
38+
}

0 commit comments

Comments
 (0)