adafruit / Adafruit_NeoPixel

Arduino library for controlling single-wire LED pixels (NeoPixel, WS2812, etc.)
GNU Lesser General Public License v3.0
3.08k stars 1.27k forks source link

still have error, NOT IN CODE in how it is used ???? #292

Closed karadevnet closed 3 years ago

karadevnet commented 3 years ago

ok, i try today to use Sketch->Add Files, and make i files but error code show like this:

F:\ELECTRONICS_2021_JUNE\PIXEL_RGB\ADAFRUT_RAINBOW\strandtest_wheel\effects.c: In function 'colorwipe_color': effects.c:9:16: error: 'strip' undeclared (first use in this function) for(k=0; k < strip.numPixels(); k++) { ^~~~~ F:\ELECTRONICS_2021_JUNE\PIXEL_RGB\ADAFRUT_RAINBOW\strandtest_wheel\effects.c:9:16: note: each undeclared identifier is reported only once for each function it appears in Using lib „Adafruit_NeoPixel-1.8.5“ от версия 1.8.5 от папка: C:\Users\batkoko\Documents\Arduino\libraries\Adafruit_NeoPixel-1.8.5 exit status 1 Error lin line: -1 'strip' undeclared (first use in this function)

i export source code of one function in external file to try to make what you say but have this error strandtest_wheel.zip strandtest_wheel.zip

here and all project to find a way, error say that STRIP is not a union or class member or what else is in INO file and can not compile strandtest_wheel.zip if you try to compile in you will see and i am sure you find a way to solve this :)

patlkli commented 3 years ago

There's lots of issues with your code.

karadevnet commented 3 years ago

start to edit and hope working, will post answer after test :) 10x very mach, i see need to make some new knowledge for programming :) will try my best

karadevnet commented 3 years ago

extern Adafruit_NeoPixel strip; working fine ok, everything is super cool :) . Little add from me is a same code in effects.cpp like #include <Adafruit_NeoPixel.h> need to be there to link all in one :) Thanks so very much, I learn some new about programming how to do it because until now I use microchip pic processors and there is little different, but never mind :) working fine super cool and continue to make a matrix effects. Will make a video for end result in tube :) case closed :)