Не могу разобратса в ошибке
- Войдите на сайт для отправки комментариев
Чт, 06/05/2021 - 14:41
Arduino: 1.8.13 (Windows 10), Плата:"Arduino Uno"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\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\kosov\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path C:\Users\kosov\AppData\Local\Temp\arduino_build_850745 -warnings=none -build-cache C:\Users\kosov\AppData\Local\Temp\arduino_cache_103823 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\libraries\duino_light_show\duino_light_show.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\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\kosov\OneDrive\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10813 -build-path C:\Users\kosov\AppData\Local\Temp\arduino_build_850745 -warnings=none -build-cache C:\Users\kosov\AppData\Local\Temp\arduino_cache_103823 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\libraries\duino_light_show\duino_light_show.ino
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Adafruit_NeoPixel.h: [Adafruit_NeoPixel-master@1.1.6 Adafruit_NeoPixel@1.3.1]
ResolveLibrary(Adafruit_NeoPixel.h)
-> candidates: [Adafruit_NeoPixel-master@1.1.6 Adafruit_NeoPixel@1.3.1]
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
-> candidates: [EEPROM@2.0]
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for ffft.h: [ffft]
ResolveLibrary(ffft.h)
-> candidates: [ffft]
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\ffft" "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\ffft" "C:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel\\Adafruit_NeoPixel.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\ffft" "C:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel\\esp8266.c" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\ffft" "C:\\Program Files (x86)\\Arduino\\libraries\\ffft\\ffft.S" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\ffft" "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp" -o "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Компиляция скетча...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files (x86)\\Arduino\\libraries\\Adafruit_NeoPixel" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\EEPROM\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\ffft" "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp" -o "C:\\Users\\kosov\\AppData\\Local\\Temp\\arduino_build_850745\\sketch\\duino_light_show.ino.cpp.o"
C:\Program Files (x86)\Arduino\libraries\duino_light_show\duino_light_show.ino: In function 'void setParameters()':
duino_light_show:500:7: error: 'rainbow' was not declared in this scope
rainbow();
^~~~~~~
C:\Program Files (x86)\Arduino\libraries\duino_light_show\duino_light_show.ino:500:7: note: suggested alternative: 'random'
rainbow();
^~~~~~~
random
duino_light_show:503:7: error: 'sparkle' was not declared in this scope
sparkle();
^~~~~~~
duino_light_show:506:7: error: 'col_random' was not declared in this scope
col_random();
^~~~~~~~~~
C:\Program Files (x86)\Arduino\libraries\duino_light_show\duino_light_show.ino:506:7: note: suggested alternative: 'colorIndex'
col_random();
^~~~~~~~~~
colorIndex
duino_light_show:509:7: error: 'CylonBounce' was not declared in this scope
CylonBounce();
^~~~~~~~~~~
duino_light_show:512:7: error: 'Strobe' was not declared in this scope
Strobe(7);
^~~~~~
C:\Program Files (x86)\Arduino\libraries\duino_light_show\duino_light_show.ino:512:7: note: suggested alternative: 'tone'
Strobe(7);
^~~~~~
tone
duino_light_show:515:7: error: 'Police_Flash' was not declared in this scope
Police_Flash(50, 100, 4);
^~~~~~~~~~~~
duino_light_show:518:7: error: 'LedBright' was not declared in this scope
LedBright();
^~~~~~~~~
duino_light_show:521:7: error: 'LampDimmer' was not declared in this scope
LampDimmer();
^~~~~~~~~~
Несколько библиотек найдено для "Adafruit_NeoPixel.h"
Используется: C:\Program Files (x86)\Arduino\libraries\Adafruit_NeoPixel
Не используется: C:\Program Files (x86)\Arduino\libraries\Adafruit_NeoPixel-master
Используем библиотеку Adafruit_NeoPixel версии 1.3.1 из папки: C:\Program Files (x86)\Arduino\libraries\Adafruit_NeoPixel
Используем библиотеку EEPROM версии 2.0 из папки: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM
Используем библиотеку ffft в папке: C:\Program Files (x86)\Arduino\libraries\ffft (legacy)
exit status 1
'rainbow' was not declared in this scope
Принято к сведению.
Вы просто сообщить нам решили или у Вас какие-то вопросы есть?
Как появятся, не стесняйтесь, спрашивайте.
Как то уж очень прозрачно:
Несколько библиотек найдено для "Adafruit_NeoPixel.h"
Это по-простому значит: "Ты, идиот, наставил библиотеки, а чего-то от меня хочешь! Иди в библиотеку и изучай си++!"
duino_light_show:518:7: error: 'LedBright' was not declared in this scope - неизвестная переменная LedBright
duino_light_show:509:7: error: 'CylonBounce' was not declared in this scope- неизвестная переменная CylonBounce
Короче - я надеюсь, что Вам понятно, что надо идти в библиотеку и изучать си++
И кстати, почитайте правила для новичков в разделе "песочница". Реально вштыривает!