Generating random numbers takes too long!
my led multiplexing code operates @ rate of 20-30 µs per column. want add random behavior, random() function takes as 130 µs per call. if try call while multiplexing, last column appears flash brighter.
my temporary workaround generate large number of random ints array beforehand, during setup, limited paltry flash size.
does know of quicker way generate random numbers on fly?
my temporary workaround generate large number of random ints array beforehand, during setup, limited paltry flash size.
does know of quicker way generate random numbers on fly?
maybe:
http://sensorium.github.io/mozzi/doc/html/group__random.html#details
i not know how granular library is, not know if there bloat issue... but, try it.
ray
http://sensorium.github.io/mozzi/doc/html/group__random.html#details
quote
these replace arduino random() slow stop audio. can used generate audio noise.
i not know how granular library is, not know if there bloat issue... but, try it.
ray
Arduino Forum > Using Arduino > Project Guidance > Generating random numbers takes too long!
arduino
Comments
Post a Comment