There could be a function like this:
bool pattern(int num, SpeedSetting speed, bool repeat = false)
Then the blink code would play only once, and some action by another function could be taken as soon as the blink is over. Like this:
If I put my hand over a distance sensor, it would blink the number of millimeters that the hand is over the sensor. But then some function could only allow another "distance measure by the sensor" when the number of mms blinked is over. So the bool argument would indicate the end of the blink pattern (for a repeat = false)
Thanks!
There could be a function like this:
bool pattern(int num, SpeedSetting speed, bool repeat = false)
Then the blink code would play only once, and some action by another function could be taken as soon as the blink is over. Like this:
If I put my hand over a distance sensor, it would blink the number of millimeters that the hand is over the sensor. But then some function could only allow another "distance measure by the sensor" when the number of mms blinked is over. So the bool argument would indicate the end of the blink pattern (for a repeat = false)
Thanks!