This code:
def imp(count,length):
return "".join("#" if (i * count) % length < speed else " " for i in range(length))
for n in range(1,100): print(imp(n,100))
generates a beautiful even spread of exactly count impulses per overall length range of symbols. This could improve handling of CPU time at the stepper update routine, or could be re-used at any time-dependent update routine like in DDS etc.
Thank you, [@addam], for this great tip!
This code:
generates a beautiful even spread of exactly
countimpulses per overalllengthrange of symbols. This could improve handling of CPU time at the stepper update routine, or could be re-used at any time-dependent update routine like in DDS etc.Thank you, [@addam], for this great tip!