So I've been trying to work out how to control messages on an LED Matrix with the number of steps my stepper motor makes. So different messages would be triggered to appear at different step points, for example:
if steps = 20
display message 1
I was wondering if anyone had any guidance or advise on how to do this as I've found that doing this in if statements doesn't work?
I've been trying to test with this logic but have found it to be more complicated than I thought it would be. I'm wondering if I need to create a variable like this:
However I realise that I haven't assigned it to a function which can keep track of steps - any advice on how to do this would be appreciated! Im still quite new to working with physical computing