i am making a 10x10 neopixel matrix vu meter i have this code (i have attached it)
but when i upload the code i get this error message.
Arduino: 1.8.1 (Windows 10), Board: "Arduino Nano, ATmega328"
In file included from C:\Users\Re\Documents\Arduino_10x10vu_10x10vu.ino:10:0:
C:\Users\Documents\Arduino\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.003
pragma message "FastLED version 3.001.003"
^
C:\Users\Documents\Arduino_10x10vu_10x10vu.ino: In function 'void loop()':
_10x10vu:74: error: 'fft_lin_out' was not declared in this scope
fft_lin_out[0] = 0;
^
exit status 1
'fft_lin_out' was not declared in this scope
can anyone help?
_10x10vu.ino (4.18 KB)
I will bet that you get more help when you follow the instructions, especially when you consider that some experts will not help otherwise. Here is a summary.
To post code and/or error messages:
- Use CTRL-T in the Arduino IDE to autoformat your complete code.
- Paste the complete autoformatted code between code tags (the </> button)
so that we can easily see and deal with your code.
- Paste the complete error message between code tags (the </> button)
so that we can easily see and deal with your messages.
- If you already posted without code tags, you may add the code tags by
editing your post. Do not change your existing posts in any other way.
You may make additional posts as needed.
- Please provide links to any libraries that are used
(look for statements in your code that look like #include ). Many libraries
are named the same but have different contents.
Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.
If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a clear photograph of the wiring.
Good Luck!
All of what @vaj4088 said plus there's a "Search the Arduino Forum" feature near the top of the forum page. It does actually work.
Pete
"there's a "Search the Arduino Forum" feature near the top of the forum page. It does actually work."
Barely. Google brings up all kinds of stuff and it's up to the searcher to wade thru it all to find something. I have a hard time just finding my own posts and I know what I'm looking for.
I'm betting you either don't have all the libraries installed in your /libraries folder, but that would have resulted in more errors,
or you don't have
byte fft_lin_out[11]; // or char
declared anywhere, so the sketch is using an unknown variable here:
fft_lin_out[0] = 0;
fft_lin_out[1] = 0;
and here
if((unsigned char)fft_lin_out[x] > maxW){
maxW = (unsigned char)fft_lin_out[x];
search for:
'fft_lin_out' was not declared in this scope
First result has a possible solution.
Pete