loading
4 Comments

Tell us about yourself!

Complete Your Profile
  • Make your own SIMPLE 5x5x5 RGB LED Cube

    Hello,when i open animation .ino i have that :#include <FastLED.h>#define DATA_PIN 2#define LED_TYPE WS2812#define COLOR_ORDER GRB#define NUM_LEDS 125#define analogin A0CRGB leds[NUM_LEDS];int BRIGHTNESS;int i;int x;int y;void setup() { FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS); x=0; y=200;}void loop() { BRIGHTNESS=map(analogRead(analogin),0,1023,0,255); FastLED.setBrightness(BRIGHTNESS); FastLED.clear(); for (i=(0+x);i<(25+x);i++){ leds[i] = CRGB::Red;} FastLED.show(); x=x+25; if (x>=125){ x=0; y=y-10;} if(y==10){y=200;} delay(y);}And the message is : redefinition of 'void setup()'What must i do ?Thank you.

    Hello , when i want to chek the file Colorpalet.ino, i have this message (What does that mean and what must i do ? :Arduino : 1.6.6 (Windows 10), Carte : "Arduino Nano, ATmega328"C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\mbwalain\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\mbwalain\Documents\Arduino\libraries" -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10606 -build-path "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9...see more »Hello , when i want to chek the file Colorpalet.ino, i have this message (What does that mean and what must i do ? :Arduino : 1.6.6 (Windows 10), Carte : "Arduino Nano, ATmega328"C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\mbwalain\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\mbwalain\Documents\Arduino\libraries" -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10606 -build-path "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\mbwalain\Documents\Arduino\Animation\Animation.ino"C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\mbwalain\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\mbwalain\Documents\Arduino\libraries" -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10606 -build-path "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\mbwalain\Documents\Arduino\Animation\Animation.ino""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\FastLED.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\colorpalettes.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\colorutils.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\hsv2rgb.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\lib8tion.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\noise.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\power_mgt.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master\wiring.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -M -MG -MP -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp""C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\preproc\ctags_target.cpp""C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino2/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\preproc\ctags_target.cpp""C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10606 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master" "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp" -o "C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp.o"ColorPalette:4: error: redefinition of 'int BRIGHTNESS' int BRIGHTNESS; ^Animation:8: error: 'int BRIGHTNESS' previously declared here int BRIGHTNESS; ^ColorPalette:7: error: redefinition of 'CRGB leds [125]' CRGB leds[NUM_LEDS]; ^Animation:7: error: 'CRGB leds [125]' previously declared here CRGB leds[NUM_LEDS]; ^Animation:6: error: conflicting declaration 'int A0' #define analogin A0 ^C:\Users\mbwalain\Documents\Arduino\Animation\ColorPalette.ino:8:5: note: in expansion of macro 'analogin' int analogin = A0; ^In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs/pins_arduino.h:23:0, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:249, from C:\Users\mbwalain\AppData\Local\Temp\build872d275bbdfc9ab62722ba33adc4fc17.tmp\sketch\Animation.ino.cpp:1:C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs/../standard/pins_arduino.h:47:22: error: 'A0' has a previous declaration as 'const uint8_t A0' static const uint8_t A0 = 14; ^C:\Users\mbwalain\Documents\Arduino\Animation\ColorPalette.ino: In function 'void setup()':ColorPalette:19: error: redefinition of 'void setup()' void setup() { ^Animation:13: error: 'void setup()' previously defined here void setup() { ^C:\Users\mbwalain\Documents\Arduino\Animation\ColorPalette.ino: In function 'void loop()':ColorPalette:28: error: redefinition of 'void loop()' void loop() ^Animation:19: error: 'void loop()' previously defined here void loop() { ^Utilisation de la bibliothèque FastLED-master version 3.1.0 dans le dossier: C:\Users\mbwalain\Documents\Arduino\libraries\FastLED-master exit status 1redefinition of 'int BRIGHTNESS'

    View Instructable »