I basically want to have a button that when you click it once, it collects some data and waits for the button to be pressed again, and repeats that.
The code is quite long so here’s the pastebin: https://pastebin.com/KTpZtsXx
the “//” things should give you enough detail.
what i wrote seems like it should work, but it doesn’t for some reason. can anyone discuss why and help fix it?