Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Is there any simple way to keep track of an integer between resets?
I'm trying to keep track of the current angle of a stepper motor so that I can reset the mbed and it'll still know where it is at. I could write the step count to disk every time I move the stepper motor but this seems horribly inefficient!
I remember seeing *somewhere* that the mbed has inbuilt counters somewhere? Could I use those for persistent storage of an integer or do i have the wrong end of the proverbial stick?