I've figured it out, needed to use lists - this solved it for me https://www.youtube.com/watch?v=4jDVYZSYTo4
L
Latest posts made by Lukash616
-
RE: Newbie question - cycle functions via one button
-
RE: Newbie question - cycle functions via one button
Right done some more fiddling and it's almost how i want it. The below works but instead of using wasPressed, longPress and wasDoublePress - i want all states to be selectable by wasPressed.
Is there a way to do wasPressed Xtimes?
-
Newbie question - cycle functions via one button
Hi, I'm making a very simple D&D dice program for the M5stick C via UI Flow blockly.
I want to be able to use button A to cycle through different dice, as it stands I can only figure out how to do it using wasPressed, DoublePress and longPress.
What would be the best way to just use single press to cycle functions?
Here is the beginning of my code, i'm sure it's probably not the most efficient way: