File tree Expand file tree Collapse file tree 11 files changed +5
-44
lines changed
wokwi-analog-joystick/joystick-uno
wokwi-photoresistor-sensor/photoresistor-uno
wokwi-slide-potentiometer Expand file tree Collapse file tree 11 files changed +5
-44
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,16 @@ author: 'Uri Shaked'
44
55steps :
66 - wait-serial : ' Display initialized'
7- - delay : 100ms
87
98 - wait-serial : ' Counter: 0'
109 - take-screenshot :
1110 part-id : ' oled1'
1211 compare-with : ' screenshots/counter-0.png'
13- - delay : 1000ms
1412
1513 - wait-serial : ' Counter: 1'
1614 - take-screenshot :
1715 part-id : ' oled1'
1816 compare-with : ' screenshots/counter-1.png'
19- - delay : 1000ms
2017
2118 - wait-serial : ' Counter: 2'
2219 - take-screenshot :
Original file line number Diff line number Diff line change 88 part-id : joystick1
99 control : x
1010 value : -1
11- - delay : 100ms
1211 - wait-serial : ' Horizontal: 0'
1312 - set-control :
1413 part-id : joystick1
1514 control : y
1615 value : 1
17- - delay : 100ms
1816 - wait-serial : ' Vertical: 1023'
1917 - set-control :
2018 part-id : joystick1
2119 control : x
2220 value : 0.5
23- - delay : 100ms
2421 - wait-serial : ' Horizontal: 768'
2522 - set-control :
2623 part-id : joystick1
Original file line number Diff line number Diff line change 66 # Make sure we're running on the ESP32
77 - wait-serial : ' ets Jul 29 2019 12:21:46'
88 - wait-serial : ' DHT22 test!'
9- # Wait for first reading
10- - delay : 500ms
11- # Check exact temperature and humidity values
9+ # Wait for first reading and check exact temperature and humidity values
1210 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
1311 # Wait for second reading to confirm consistency
14- - delay : 500ms
1512 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
1613 # Set new values
1714 - set-control :
2219 part-id : dht
2320 control : humidity
2421 value : 66.9
25- - delay : 500ms
2622 # Check new values
2723 - wait-serial : ' Humidity: 66.90% Temperature: 21.50°C'
Original file line number Diff line number Diff line change @@ -4,12 +4,9 @@ author: 'Uri Shaked'
44
55steps :
66 - wait-serial : ' DHT22 test (Pi Pico)'
7- # Wait for first reading
8- - delay : 500ms
9- # Check exact temperature and humidity values
7+ # Wait for first reading and check exact temperature and humidity values
108 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
119 # Wait for second reading to confirm consistency
12- - delay : 500ms
1310 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
1411 # Set new values
1512 - set-control :
2017 part-id : dht
2118 control : humidity
2219 value : 66.9
23- - delay : 500ms
2420 # Check new values
2521 - wait-serial : ' Humidity: 66.90% Temperature: 21.50°C'
Original file line number Diff line number Diff line change @@ -5,12 +5,9 @@ author: 'Uri Shaked'
55steps :
66 # Wait for initialization
77 - wait-serial : ' DHT22 test (STM32)'
8- # Wait for first reading
9- - delay : 500ms
10- # Check exact temperature and humidity values
8+ # Wait for first reading and check exact temperature and humidity values
119 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
1210 # Wait for second reading to confirm consistency
13- - delay : 500ms
1411 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
1512 # Set new values
1613 - set-control :
2118 part-id : dht
2219 control : humidity
2320 value : 66.9
24- - delay : 500ms
2521 # Check new values
2622 - wait-serial : ' Humidity: 66.90% Temperature: 21.50°C'
Original file line number Diff line number Diff line change @@ -4,12 +4,9 @@ author: 'Uri Shaked'
44
55steps :
66 - wait-serial : ' DHT22 test!'
7- # Wait for first reading
8- - delay : 500ms
9- # Check exact temperature and humidity values
7+ # Wait for first reading and check exact temperature and humidity values
108 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
119 # Wait for second reading to confirm consistency
12- - delay : 500ms
1310 - wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
1411 # Set new values
1512 - set-control :
2017 part-id : dht
2118 control : humidity
2219 value : 66.9
23- - delay : 500ms
2420 # Check new values
2521 - wait-serial : ' Humidity: 66.90% Temperature: 21.50°C'
Original file line number Diff line number Diff line change @@ -3,16 +3,12 @@ version: 1
33author : ' Uri Shaked'
44
55steps :
6- - delay : 100ms
76 - wait-serial : ' ILI9341 Test!'
8- - delay : 100ms
97 - wait-serial : ' Display initialized'
10- - delay : 100ms
118 - wait-serial : ' Counter: 0'
129 - take-screenshot :
1310 part-id : ' lcd1'
1411 compare-with : ' screenshots/count-0.png'
15- - delay : 1000ms
1612 - wait-serial : ' Counter: 1'
1713 - take-screenshot :
1814 part-id : ' lcd1'
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ version: 1
33author : ' Uri Shaked'
44
55steps :
6- - delay : 100ms
76 - wait-serial : ' Display initialized'
87 - take-screenshot :
98 part-id : ' lcd'
Original file line number Diff line number Diff line change @@ -4,26 +4,21 @@ author: 'Wokwi'
44
55steps :
66 - wait-serial : ' Photoresistor Sensor Test'
7- # Wait for first reading
8- - delay : 500ms
9- # Check initial light value (should be around 500 lux)
7+ # Wait for first reading and check initial light value (should be around 500 lux)
108 - wait-serial : ' Sensor value: 250'
119 # Wait for second reading to confirm consistency
12- - delay : 500ms
1310 - wait-serial : ' Sensor value: 250'
1411 # Set new lux value (bright light)
1512 - set-control :
1613 part-id : photoresistor
1714 control : lux
1815 value : 1000
19- - delay : 500ms
2016 # Check new values (analog value should be lower)
2117 - wait-serial : ' Sensor value: 169'
2218 # Set low light condition
2319 - set-control :
2420 part-id : photoresistor
2521 control : lux
2622 value : 100
27- - delay : 500ms
2823 # Check low light values (analog value should be higher)
2924 - wait-serial : ' Sensor value: 511'
Original file line number Diff line number Diff line change @@ -3,23 +3,19 @@ version: 1
33author : ' Uri Shaked'
44
55steps :
6- - delay : 100ms
76 - wait-serial : ' Potentiometer value: 2048'
87 - set-control :
98 part-id : pot1
109 control : position
1110 value : 1
12- - delay : 100ms
1311 - wait-serial : ' Potentiometer value: 4095'
1412 - set-control :
1513 part-id : pot1
1614 control : position
1715 value : 0
18- - delay : 100ms
1916 - wait-serial : ' Potentiometer value: 0'
2017 - set-control :
2118 part-id : pot1
2219 control : position
2320 value : 0.5
24- - delay : 100ms
2521 - wait-serial : ' Potentiometer value: 2048'
You can’t perform that action at this time.
0 commit comments