That's good
Note the subtle changes to the names of the variables to make the code more readable
If you want the loop() function to do nothing until you enter the 's' then you could just put the "wait for 's' code" in setup()
That's good
Note the subtle changes to the names of the variables to make the code more readable
If you want the loop() function to do nothing until you enter the 's' then you could just put the "wait for 's' code" in setup()