Complete newb here...
I'm attempting to build this project
https://create.arduino.cc/projecthub/janux/fht-audio-spectrum-visualizer-83bba0?f=1
and I keep getting this error:
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P"
C:\Users\ATi-PC2\Downloads\fht_code_version\fht_code_version.ino: In function 'void RearrangeFHT()':
fht_code_version:165:51: error: expected ',' before '+' token
data_avgs[c] = data_avgs[c] + fht_lin_out[i + k]; // linear output magnitude
fht_code_version:165:51: error: expected identifier before '+' token
C:\Users\ATi-PC2\Downloads\fht_code_version\fht_code_version.ino: In lambda function:
fht_code_version:165:55: error: expected '{' before ';' token
data_avgs[c] = data_avgs[c] + fht_lin_out[i + k]; // linear output magnitude
^
C:\Users\ATi-PC2\Downloads\fht_code_version\fht_code_version.ino: In function 'void RearrangeFHT()':
fht_code_version:165:35: error: no match for 'operator+' (operand types are 'byte {aka unsigned char}' and 'RearrangeFHT()::<lambda()>')
data_avgs[c] = data_avgs[c] + fht_lin_out[i + k]; // linear output magnitude
exit status 1
expected ',' before '+' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Any thoughts on what could be causing this? I'm definitely not well versed enough in C++ know what's happening here.