Thanks a lot, it seems to work!
Only thing is that I probably described it a bit wrong. There's one line with OK brightness but others are dimmer, but now at least all lines are the same brightness (but dimmer than before using FHT). But I guess it should work afterwards, I've calculated resistors for 12V supply for LEDs while currently I use only 5V.
it looks like the way you set how long an LED is on for, is by the amount of time it takes to run 8 clock() functions.
Aren't LEDs on while the latch pin is HIGH? From this I understand it like they would be on when latch is LOW (when i call clock() functions)
is because it also has to run the fht() function, so it takes much longer
I thought this would only add more delay after drawing the whole matrix - LEDs would only be off for longer...
Also, do I really need this:
TIMSK0 = 0; // turn off timer0 for lower jitter
and do I need while(1) loop in the loop() function? (I have commented it out right now)
And one last thing:
If I use #define FHT_N 64, I assume I'll get 32 amplitudes (I need only 20), what would be the resolution of each amplitude? (Like it was 150hz before, I guess it would be larger now)