Closed Wavgatuino closed 4 years ago
That platform is not supported in IRLib. Furthermore this original IRLib is no longer being maintained and is depreciated. You should use IRLib2 which can be found here. However note that it also does not support your platform. https://github.com/cyborg5/IRLib2
@cyborg5, the URL you just posted is correct in text, but broken in the underlying link. Here it is again for anyone who wants to click on it: https://github.com/cyborg5/IRLib2
Arduino Wavgat Nano Board
custom #Board code
`/* Пример программы из IRLib-библиотеки Arduino для инфракрасного кодирования и декодирования
include
IRsend My_Sender;
void setup() { Serial.begin(9600); {pinMode(13,OUTPUT); digitalWrite(13,1); delay(500); // 0.5-секундная задержка digitalWrite(13,0); }
// отправлять код при каждом получении символа из последовательного портаvoid loop() { for (int e = 0; e < 999999; e+=10) { for (int i = 0; i < 3; i++) {
digitalWrite(13,1); delay(500); // 0.5-секундная задержка между каждым сигналом digitalWrite(13,0); }
} `
the compiler writes:
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\User\Desktop\Ардуино\скетчи\libraries -fqbn=hardware:WAV8F:lardu_328e -ide-version=10805 -build-path C:\Users\User\AppData\Local\Temp\arduino_build_208872 -warnings=more -build-cache C:\Users\User\AppData\Local\Temp\arduino_cache_247977 -prefs=build.warn_data_percentage=75 -verbose C:\Users\User\Desktop\Ардуино\скетчи\IRsendJVC\IRsendJVC.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\User\Desktop\Ардуино\скетчи\libraries -fqbn=hardware:WAV8F:lardu_328e -ide-version=10805 -build-path C:\Users\User\AppData\Local\Temp\arduino_build_208872 -warnings=more -build-cache C:\Users\User\AppData\Local\Temp\arduino_cache_247977 -prefs=build.warn_data_percentage=75 -verbose C:\Users\User\Desktop\Ардуино\скетчи\IRsendJVC\IRsendJVC.ino Using board 'lardu_328e' from platform in folder: C:\Program Files (x86)\Arduino\hardware\hardware\WAV8F Using core 'lgt8f' from platform in folder: C:\Program Files (x86)\Arduino\hardware\hardware\WAV8F Внимание: platform.txt из ядра 'Arduino AVR Boards' содержит устаревшие recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", автоматически преобразовано в recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Ожидайте обновления ядра. Detecting libraries used... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_WAV8F "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f" "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\variants\lgt8fx8e" "C:\Users\User\AppData\Local\Temp\arduino_build_208872\sketch\IRsendJVC.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_WAV8F "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f" "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\variants\lgt8fx8e" "-IC:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master" "C:\Users\User\AppData\Local\Temp\arduino_build_208872\sketch\IRsendJVC.ino.cpp" -o "nul" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_WAV8F "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f" "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\variants\lgt8fx8e" "-IC:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master" "C:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master\IRLib.cpp" -o "nul" Generating function prototypes... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_WAV8F "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f" "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\variants\lgt8fx8e" "-IC:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master" "C:\Users\User\AppData\Local\Temp\arduino_build_208872\sketch\IRsendJVC.ino.cpp" -o "C:\Users\User\AppData\Local\Temp\arduino_build_208872\preproc\ctags_target_for_gcc_minus_e.cpp" "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\User\AppData\Local\Temp\arduino_build_208872\preproc\ctags_target_for_gcc_minus_e.cpp" Компиляция скетча... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_WAV8F "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f" "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\variants\lgt8fx8e" "-IC:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master" "C:\Users\User\AppData\Local\Temp\arduino_build_208872\sketch\IRsendJVC.ino.cpp" -o "C:\Users\User\AppData\Local\Temp\arduino_build_208872\sketch\IRsendJVC.ino.cpp.o" Compiling libraries... Compiling library "IRLib-master" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_WAV8F "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f" "-IC:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\variants\lgt8fx8e" "-IC:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master" "C:\Users\User\Desktop\РђСЂРґСѓРёРЅРѕ\скетчи\libraries\IRLib-master\IRLib.cpp" -o "C:\Users\User\AppData\Local\Temp\arduino_build_208872\libraries\IRLib-master\IRLib.cpp.o" C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:679:3: warning: this decimal constant is unsigned only in ISO C90
hash = FNV_BASIS_32;
^
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp: In function 'const __FlashStringHelper* Pnames(IRTYPES)':
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:43:20: warning: array subscript has type 'char' [-Wchar-subscripts]
return Names[Type];
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp: In member function 'bool IRrecvLoop::GetResults(IRdecodeBase*)':
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:755:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp: In function 'void IRrecvPCI_Handler()':
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:787:9: warning: enumeration value 'STATE_UNKNOWN' not handled in switch [-Wswitch]
switch(irparams.rcvstate) {
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:787:9: warning: enumeration value 'STATE_MARK' not handled in switch [-Wswitch]
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:787:9: warning: enumeration value 'STATE_SPACE' not handled in switch [-Wswitch]
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp: In function 'unsigned char Pin_from_Intr(unsigned char)':
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:927:45: warning: 'progmem' attribute ignored [-Wattributes]
const unsigned char PROGMEM attach_to_pin[]= {
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp: In function 'void __vector_7()':
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:1047:9: warning: enumeration value 'STATE_UNKNOWN' not handled in switch [-Wswitch]
switch(irparams.rcvstate) {
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:1047:9: warning: enumeration value 'STATE_RUNNING' not handled in switch [-Wswitch]
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp: In member function 'bool IRrecvLoop::GetResults(IRdecodeBase*)':
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:754:7: warning: 'EndTime' may be used uninitialized in this function [-Wmaybe-uninitialized]
C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master\IRLib.cpp:760:49: warning: 'DeltaTime' may be used uninitialized in this function [-Wmaybe-uninitialized]
Compiling core... Using precompiled core Linking everything together... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -Wall -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\User\AppData\Local\Temp\arduino_build_208872/IRsendJVC.ino.elf" "C:\Users\User\AppData\Local\Temp\arduino_build_208872\sketch\IRsendJVC.ino.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_208872\libraries\IRLib-master\IRLib.cpp.o" "C:\Users\User\AppData\Local\Temp\arduino_build_208872/..\arduino_cache_247977\core\core_hardware_WAV8F_lardu_328e_9eef9531f9a1ab4928a19deffb109630.a" "-LC:\Users\User\AppData\Local\Temp\arduino_build_208872" -lm C:\Users\User\AppData\Local\Temp\arduino_build_208872/..\arduino_cache_247977\core\core_hardware_WAV8F_lardu_328e_9eef9531f9a1ab4928a19deffb109630.a(main.cpp.o): In function `main':
C:\Program Files (x86)\Arduino\hardware\hardware\WAV8F\cores\lgt8f/main.cpp:105: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
Используем библиотеку IRLib-master в папке: C:\Users\User\Desktop\Ардуино\скетчи\libraries\IRLib-master (legacy) exit status 1 Ошибка компиляции для платы WAVGAT NANO 3.0.
<