При работе с библиотекой у меня возникла проблема с загрузкой на arduino mega. А так-же возникла проблема с заменой текста на переменную TV.print_str ( 10, 10, "в место этого текста должна быть переменная" ); Прошу помочь с решением данных задач.
Ну хотя бы помогите мене с заменой текста на переменную. TV.print_str ( 10, 10, "в место этого текста должна быть переменная" );
Сформулируйте вопрос. Тогда Вам может быть ответят. Пока Ваш вопрос понятен Ваша реплика понятна только Вам.
Я написал программу с библиотекой tv.out. Потом я начил загружать на ардуино мега 2560. Во время компиляции у меня выскочила ошибка. Что-та типа невозможно скопелировать для ардуино мега 2560. Но в интернете я виде ролик где всё загружалось. Вопрос почему у меня не грузит?
Arduino: 1.6.9 (Windows XP), Плата:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files\Arduino\hardware" -tools "C:\Program Files\Arduino\tools-builder" -tools "C:\Program Files\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files\Arduino\libraries" -libraries "C:\Documents and Settings\Loner\Мои документы\Arduino\libraries" -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10609 -build-path "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Program Files\Arduino\libraries\TVout\examples\DemoNTSC\DemoNTSC.pde" C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files\Arduino\hardware" -tools "C:\Program Files\Arduino\tools-builder" -tools "C:\Program Files\Arduino\hardware\tools\avr" -built-in-libraries "C:\Program Files\Arduino\libraries" -libraries "C:\Documents and Settings\Loner\Мои документы\Arduino\libraries" -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10609 -build-path "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Program Files\Arduino\libraries\TVout\examples\DemoNTSC\DemoNTSC.pde" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\sketch\DemoNTSC.pde.cpp" -o "nul" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\sketch\DemoNTSC.pde.cpp" -o "nul" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Program Files\Arduino\libraries\TVout\TVout.cpp" -o "nul" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Program Files\Arduino\libraries\TVout\video_gen.cpp" -o "nul" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\sketch\DemoNTSC.pde.cpp" -o "nul" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\sketch\DemoNTSC.pde.cpp" -o "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\sketch\DemoNTSC.pde.cpp" -o "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\sketch\DemoNTSC.pde.cpp.o" "C:\Program Files\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=atmega2560 -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega" "-IC:\Program Files\Arduino\libraries\TVout" "C:\Program Files\Arduino\libraries\TVout\TVout.cpp" -o "C:\Temp\buildfa3ff37767d81966d5fb2953b7f310fa.tmp\libraries\TVout\TVout.cpp.o" C:\Program Files\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::render_setup(uint8_t)': C:\Program Files\Arduino\libraries\TVout\TVout.cpp:785:2: error: '_VID_DDR' was not declared in this scope _VID_DDR |= _BV(_VID_PIN); ^ In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from C:\Program Files\Arduino\libraries\TVout\TVout.cpp:54: C:\Program Files\Arduino\libraries\TVout\TVout.cpp:785:18: error: '_VID_PIN' was not declared in this scope _VID_DDR |= _BV(_VID_PIN); ^ C:\Program Files\Arduino\libraries\TVout\TVout.cpp:786:2: error: '_SYNC_DDR' was not declared in this scope _SYNC_DDR |= _BV(_SYNC_PIN); ^ In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from C:\Program Files\Arduino\libraries\TVout\TVout.cpp:54: C:\Program Files\Arduino\libraries\TVout\TVout.cpp:786:19: error: '_SYNC_PIN' was not declared in this scope _SYNC_DDR |= _BV(_SYNC_PIN); ^ C:\Program Files\Arduino\libraries\TVout\TVout.cpp:787:2: error: '_VID_PORT' was not declared in this scope _VID_PORT &= ~_BV(_VID_PIN); ^ C:\Program Files\Arduino\libraries\TVout\TVout.cpp:788:2: error: '_SYNC_PORT' was not declared in this scope _SYNC_PORT |= _BV(_SYNC_PIN); ^ Используем библиотеку TVout в папке: C:\Program Files\Arduino\libraries\TVout (legacy) exit status 1 Ошибка компиляции для платы Arduino/Genuino Mega or Mega 2560.