exit status 1 Ошибка компиляции для платы Arduino Nano.Задолбало

meganom
Offline
Зарегистрирован: 07.05.2017

Пару дней как пользуюсь платкой arduino nano. Взял ее для быстрой проверки различных модулей. Но не все оказалось так хорошо, как хотелось. Какой скетч не возьму , везде пишет-  Ошибка компиляции для платы Arduino Nano. Получается я не могу проверить не одного модуля. Почему это так и что я делаю  не правильно?

T.Rook
Offline
Зарегистрирован: 05.03.2016

полностью скетч и ошибку покажите.

Еще раз проверьте выбор платы и порта в IDE

Jeka_M
Jeka_M аватар
Онлайн
Зарегистрирован: 06.07.2014

Полностью ошибку приведите. Скопируйте сюда текст и вставьте.

qwone
qwone аватар
Offline
Зарегистрирован: 03.07.2016

Скорее чел ну очень зеленый. У него IDE стоит на UNO , а он пихает Nano.

T.Rook
Offline
Зарегистрирован: 05.03.2016

Кажется, это была агония. Предлагаю консилиум на этом закрыть. Расходимся.

meganom
Offline
Зарегистрирован: 07.05.2017

Скетч для проверки I2C переходника для LCD 16x2

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
 
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
 
void setup()
{
  // initialize the LCD
  lcd.begin();
 
  // Turn on the blacklight and print a message.
  lcd.backlight();
  lcd.print("Hello, world!");
}
 
void loop()
{
  // Do nothing here...
}
andriano
andriano аватар
Offline
Зарегистрирован: 20.06.2015

meganom, первопричина Ваших проблем в том, что Вы читать очень не любите.

meganom
Offline
Зарегистрирован: 07.05.2017
Arduino: 1.8.2 (Windows 8.1), Плата:"Arduino Nano, ATmega328"
 
D:\Arduino\Arduino-LiquidCrystal-I2C-library\Arduino-LiquidCrystal-I2C-library-master\examples\HelloWorld\HelloWorld.ino:4:31: fatal error: LiquidCrystal_I2C.h: No such file or directory
 
 #include <LiquidCrystal_I2C.h>
 
                               ^
 
compilation terminated.
 
exit status 1
Ошибка компиляции для платы Arduino Nano.
 
 
 
T.Rook
Offline
Зарегистрирован: 05.03.2016

Суть ошибки: не  найдена бибилиотека <LiquidCrystal_I2C.h>

Вы ее скачали и установили или нет?

https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

meganom
Offline
Зарегистрирован: 07.05.2017

да установил 

Arduino: 1.8.2 (Windows 8.1), Плата:"Arduino Nano, ATmega328"
 
Изменены опции сборки, пересобираем все
D:\Arduino\Arduino-LiquidCrystal-I2C-library\Arduino-LiquidCrystal-I2C-library-master\examples\HelloWorld\HelloWorld.ino:4:31: fatal error: LiquidCrystal_I2C.h: No such file or directory
 
 #include <LiquidCrystal_I2C.h>
 
                               ^
 
compilation terminated.
 
Несколько библиотек найдено для "LiquidCrystal.h"
 Используется: C:\Users\ихихиих\Documents\Arduino\libraries\LiquidCrystal
Не используется: D:\Program Files (x86)\Arduino\libraries\LiquidCrystal
exit status 1
Ошибка компиляции для платы Arduino Nano.
 
 
 
meganom
Offline
Зарегистрирован: 07.05.2017

может я что то не так устанавливаю , мне после работы с мк на си. тяжело понять структуру скетча , я думал, загрузил скетч и используй , я так понял нужно подключать еще библиотеки , но как правильно это сделать я не пойму

T.Rook
Offline
Зарегистрирован: 05.03.2016

meganom пишет:

да установил 

Arduino: 1.8.2 (Windows 8.1), Плата:"Arduino Nano, ATmega328"
 
Изменены опции сборки, пересобираем все
D:\Arduino\Arduino-LiquidCrystal-I2C-library\Arduino-LiquidCrystal-I2C-library-master\examples\HelloWorld\HelloWorld.ino:4:31: fatal error: LiquidCrystal_I2C.h: No such file or directory
 
 #include <LiquidCrystal_I2C.h>
 
                               ^
 
compilation terminated.
 
Несколько библиотек найдено для "LiquidCrystal.h"
 Используется: C:\Users\ихихиих\Documents\Arduino\libraries\LiquidCrystal
Не используется: D:\Program Files (x86)\Arduino\libraries\LiquidCrystal
exit status 1
Ошибка компиляции для платы Arduino Nano.

Давайте удалим все тут: C:\Users\ихихиих\Documents\Arduino\libraries\LiquidCrystal

meganom
Offline
Зарегистрирован: 07.05.2017

ок

 

T.Rook
Offline
Зарегистрирован: 05.03.2016

meganom пишет:

может я что то не так устанавливаю , мне после работы с мк на си. тяжело понять структуру скетча , я думал, загрузил скетч и используй , я так понял нужно подключать еще библиотеки , но как правильно это сделать я не пойму

Начальные знания тут: Среда разработки

andriano
andriano аватар
Offline
Зарегистрирован: 20.06.2015

meganom, установить нужно только одну. Это не тот случай, когда чем больше, тем лучше.

meganom
Offline
Зарегистрирован: 07.05.2017

И так, я скачал скетч, открываю его. Вижу что в начале есть подключение двух библиотек

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

 

Wire.h  почему-то написана красным шрифтом а LiquidCrystal_I2C.h черным , что это значит я не понял, но скорей всего это значит что одна библиотека подключена а вторая нет . Дальше мне последовательность действий не понятна. Как правильно подключить библиотеку LiquidCrystal_I2C.h  и Wire.h ? Я так понимаю, что  они должны находится в папке library среды ардуино , и при начале компиляции проекта среда лезет в эту папку и подтягивает эти библиотеки если их нет то выдаёт ошибку .Мне не понятно где брать недостающую библиотеку и как правильно ее подключить к проекту .По идеи недостающая библиотека есть в папке с скетчем который я скачал . а проектах ардуино есть только два типа файлов , сам скетч и .h файл ? Сколько типов файлов нужно подключать к проекту ? 

Клапауций 112
Клапауций 112 аватар
Offline
Зарегистрирован: 01.03.2017

meganom пишет:

И так, я скачал скетч...

вот на этом месте закрывай этот форум и трахай мосг автору скетча.

toc
Offline
Зарегистрирован: 09.02.2013

>> Пару дней как пользуюсь платкой arduino nano.
>> Какой скетч не возьму , везде пишет- Ошибка компиляции для платы Arduino Nano.

meganom, дайте результат компиляции скетча Blink

T.Rook
Offline
Зарегистрирован: 05.03.2016

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h - заголовочный файл (обычно указывают в include), cpp - реализация.

По include и другие конструкции языка таки следует почитать.

meganom
Offline
Зарегистрирован: 07.05.2017

T.Rook пишет:

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h - заголовочный файл (обычно указывают в include), cpp - реализация.

По include и другие конструкции языка таки следует почитать.

Это я все знаю . Объясните мне, куда положить или как подключить эти библиотеки  если они у меня есть 

meganom
Offline
Зарегистрирован: 07.05.2017

подключил библиотеку .выпало еще больше ошибок 

Arduino: 1.8.2 (Windows 8.1), Плата:"Arduino Nano, ATmega328"
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::getBacklight()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::expanderWrite(unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::noBacklight()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::backlight()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::pulseEnable(unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::write4bits(unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::send(unsigned char, unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::clear()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::home()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::setCursor(unsigned char, unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::noDisplay()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::display()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::noCursor()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::cursor()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::noBlink()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::blink()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::scrollDisplayLeft()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::scrollDisplayRight()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::leftToRight()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::rightToLeft()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::autoscroll()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::noAutoscroll()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::createChar(unsigned char, unsigned char*)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::begin()'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::load_custom_character(unsigned char, unsigned char*)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::setBacklight(unsigned char)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
libraries\Arduino-LiquidCrystal-I2C-library-master\LiquidCrystal_I2C.cpp.o (symbol from plugin): In function `LiquidCrystal_I2C::LiquidCrystal_I2C(unsigned char, unsigned char, unsigned char, unsigned char)':
 
(.text+0x0): multiple definition of `LiquidCrystal_I2C::printstr(char const*)'
 
sketch\LiquidCrystal_I2C.cpp.o (symbol from plugin):(.text+0x0): first defined here
 
collect2.exe: error: ld returned 1 exit status
 
exit status 1
Ошибка компиляции для платы Arduino Nano.
 
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
 
T.Rook
Offline
Зарегистрирован: 05.03.2016

meganom пишет:

T.Rook пишет:

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h - заголовочный файл (обычно указывают в include), cpp - реализация.

По include и другие конструкции языка таки следует почитать.

Это я все знаю . Объясните мне, куда положить или как подключить эти библиотеки  если они у меня есть 

1. в каталог libraries. Распаковать в каталог и этого достаточно.

2. Давать кучу ошибок без скеча - подумай, как люди у которых ты спрашиваешь будут анализировать и что?

3. По поводу "collect2.exe: error: ld returned 1 exit status" - недавно на форуме было, поищите.

meganom
Offline
Зарегистрирован: 07.05.2017

T.Rook пишет:

meganom пишет:

T.Rook пишет:

meganom пишет:

 Сколько типов файлов нужно подключать к проекту ? 

Если коротко, то библиотека:  h - заголовочный файл (обычно указывают в include), cpp - реализация.

По include и другие конструкции языка таки следует почитать.

Это я все знаю . Объясните мне, куда положить или как подключить эти библиотеки  если они у меня есть 

1. в каталог libraries. Распаковать в каталог и этого достаточно.

2. Давать кучу ошибок без скеча - подумай, как люди у которых ты спрашиваешь будут анализировать и что?

 

1 Где это каталог находится?

2 В каком виде нужен скетч? Тут можно прикреплять файлы?

 

ua6em
ua6em аватар
Offline
Зарегистрирован: 17.08.2016

ТС точно не читатель, ТС писатель

T.Rook
Offline
Зарегистрирован: 05.03.2016

meganom пишет:

1 Где это каталог находится?

2 В каком виде нужен скетч? Тут можно прикреплять файлы?

1. в каталоге установки Arduino IDE

2. В таком Вставка программного кода в тему/комментарий

FrostDad
Offline
Зарегистрирован: 25.05.2017

Здраствуйте, у меня анологичная проблема.

скетч: /*   Данный скетч делает следующее: передатчик (TX) отправляет массив
 *   данных, который генерируется согласно показаниям с кнопки и с
 *   двух потенциомтеров. Приёмник (RX) получает массив, и записывает
 *   данные на реле, сервомашинку и генерирует ШИМ сигнал на транзистор.
    by AlexGyver 2016
*/

#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"

RF24 radio(9,10); // "создать" модуль на пинах 9 и 10 Для Уно
//RF24 radio(9,53); // для Меги

byte address[][6] = {"1Node","2Node","3Node","4Node","5Node","6Node"};  //возможные номера труб

void setup(){
  Serial.begin(9600); //открываем порт для связи с ПК
  radio.begin(); //активировать модуль
  radio.setAutoAck(1);         //режим подтверждения приёма, 1 вкл 0 выкл
  radio.setRetries(0,15);     //(время между попыткой достучаться, число попыток)
  radio.enableAckPayload();    //разрешить отсылку данных в ответ на входящий сигнал
  radio.setPayloadSize(32);     //размер пакета, в байтах

  radio.openReadingPipe(1,address[0]);      //хотим слушать трубу 0
  radio.setChannel(0x60);  //выбираем канал (в котором нет шумов!)

  radio.setPALevel (RF24_PA_MAX); //уровень мощности передатчика. На выбор RF24_PA_MIN, RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX
  radio.setDataRate (RF24_250KBPS); //скорость обмена. На выбор RF24_2MBPS, RF24_1MBPS, RF24_250KBPS
  //должна быть одинакова на приёмнике и передатчике!
  //при самой низкой скорости имеем самую высокую чувствительность и дальность!!
 
  radio.powerUp(); //начать работу
  radio.startListening();  //начинаем слушать эфир, мы приёмный модуль
}

void loop() {
    byte pipeNo, gotByte;                          
    while( radio.available(&pipeNo)){    // слушаем эфир со всех труб
      radio.read( &gotByte, sizeof(gotByte) );         // чиатем входящий сигнал

      Serial.print("Recieved: "); Serial.println(gotByte);
   }
}

 

 

ошибка:Arduino: 1.8.2 (Windows 7), Плата:"Arduino Nano, ATmega328"

C:\Даня\ардуино\счетчи\скечи\NRF24L01sketch_may25a\NRF24L01sketch_may25a.ino:9:22: fatal error: nRF24L01.h: No such file or directory

compilation terminated.

exit status 1
Ошибка компиляции для платы Arduino Nano.

 

Прочитав данную тему, так и не разобрался в чем дело,прошу помощи.

 

Jeka_M
Jeka_M аватар
Онлайн
Зарегистрирован: 06.07.2014

Установите библиотеку для nRF24L01 и замените строчку #include "nRF24L01.h" на #include <nRF24L01.h>

То же самое с RF24

Предвидя вопрос "где взять библиотеки?" - https://www.google.com/search?q=nRF24L01.hhttps://www.google.com/search?q=RF24.h

qwone
qwone аватар
Offline
Зарегистрирован: 03.07.2016
(анекдот)
  Сотый раз Чунгачгук наступал на грабли и не мог никак понять, что же бъет его по лбу. Надо открыть тему на каком нибудь форуме. Но решить на каком форуме открыть эту тему Чунгачгук не смог. Наверно надо на форуме "Охота и рыбалка". Ведь Чунгачгук счил себя опытным охотником, а не каким-то садоводом.

 

vovan_UA
Offline
Зарегистрирован: 27.05.2017

A у меня вот такую ошибку выдает после попытки залития скеча  через XLoader то что ниже ошибка в адруино ид при том что не имеет значения  что закидывать сразу вопрос можно ли это вылечить как то  как я вижу это ошибка при проверке  

Скетч использует 21464 байт (69%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 977 байт (47%) динамической памяти, оставляя 1071 байт для локальных переменных. Максимум: 2048 байт.
avrdude: verification error, first mismatch at byte 0x0042
         0xf1 != 0x1d
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
DAFdriver
Offline
Зарегистрирован: 12.08.2016

В ардуино я новичек . Появился форум (понарамный ксв-метр) . Решил собрать. И сразу проблемка - неполучается прошить arduino nano . 

 Там несколько скетчей и ни один не мгу залить , другие библиотеки (примеры)грузятся и работают. Помогите плиз .

                                                       Вот скетч :

/***************************************************************************\

 *  Name    : DDS_Sweeper.BAS                                                *
 *  Author  : Beric Dunn (K6BEZ)                                             *
 *  Notice  : Copyright (c) 2013  CC-BY-SA                                   *
 *          : Creative Commons Attribution-ShareAlike 3.0 Unported License   *
 *  Date    : 9/26/2013                                                      *
 *  Version : 1.0                                                            *
 *  Notes   : Written using for the Arduino Micro                            *
 *          :   Pins:                                                        *
 *          :   A0 - Reverse Detector Analog in                              *
 *          :   A1 - Forward Detector Analog in                              *
 *          : Modified by Norbert Redeker (DG7EAO) 07/2014                   *
 *          : TFT Display mit ILI9341 Chip, SPI, 240 x 320                   *
 *          : usglib Grafik Bibliothek   https://code.google.com/p/ucglib/   *
 \***************************************************************************/
 
#include <SPI.h>
#include "Ucglib.h"
#include "rusFont.h"
 
// Define Pins used to control AD9850 DDS
 
const int FQ_UD=11;
const int SDAT=10;
const int SCLK=12;
const int RESET=9;
 
// Variablen für Display
double vswrArray[110]; //Array für SWR
int z = 0;            // Index für Array
double SwrFreq = 14;  // Variable für Freq. mit SWR Min.
double SwrMin = 100;   // Variable für SWR Min.
double Freq1 = 1;     // Freq. Links unterste Zeile Display
double Freq2 = 15;    // Freq. Mitte unterste Zeile Display
double Freq3 = 30;    // Freq. Mitte unterste Zeile Display
unsigned long milliold = 0;  //Millisekunden für Entprellung Interrupt
unsigned long millinew = 0;  //Millisekunden für Entprellung Interrupt
int flag = 0;                // wir auf 1 gesetzt bei Interrupt, in void Loop perform_sweep
double counter = 0;          // Zähler um erste Interrupts zu ignorieren
 
// Variablen für Messung
double Fstart_MHz = 1;  // Start Frequency for sweep
double Fstop_MHz = 30;  // Stop Frequency for sweep
double current_freq_MHz; // Temp variable used during sweep
long serial_input_number; // Used to build number from serial stream
int num_steps = 100; // Number of steps to use in the sweep
char incoming_char; // Character read from serial stream
 
 
//Konstruktor für Display
Ucglib_ST7735_18x128x160_SWSPI ucg(/*sclk=*/ 12, /*data=*/ 10, /*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);
 
 
// the setup routine runs once when you press reset:
void setup() {
 
  // Voltmetr
  analogReference(INTERNAL);
  float Vbat = (analogRead(A5) * 1.1) / 1023.0;
  float Vin = Vbat / (69.8 / (783.0 + 69.8)); // R2/(R1+R2)
 
  // Schreibe Info Text auf Display
  ucg.begin(UCG_FONT_MODE_SOLID);
  ucg.clearScreen();
 
  ucg.setRotate90();
  ucg.setFont(ucg_font_9x15_tf);
  ucg.setColor(255, 255, 255); 
 
  ucg.setPrintPos(10,20);
  ucg.print("Arduino Antenna");
  ucg.setPrintPos(25,40);
  ucg.print("SWR Analyzer");
  ucg.setPrintPos(35,60);
  ucg.print("1-30 MHz");
  ucg.setPrintPos(20,80);
  ucg.print("Komsomolsk 2017");
  ucg.setPrintPos(5,128);
  ucg.print("BAT");
  ucg.setPrintPos(40,128);
  ucg.print(Vin, 1);
 
 
  // Configiure DDS control pins for digital output
  pinMode(FQ_UD,OUTPUT);
  pinMode(SCLK,OUTPUT);
  pinMode(SDAT,OUTPUT);
  pinMode(RESET,OUTPUT);
 
  //Tasten Interrupt an PIN 2
  pinMode(2,OUTPUT);
  digitalWrite(2, HIGH);
  attachInterrupt(0, key2, FALLING);
  unsigned long milliold = millis();
 
  //Tasten Interrupt an PIN 3
  pinMode(3,OUTPUT);
  digitalWrite(3, HIGH);
  attachInterrupt(1, key3, FALLING);
  //milliold = millis();
 
  // Configure LED pin for digital output
  pinMode(13,OUTPUT);
 
 
  // Set up analog inputs on A0 and A1, internal reference voltage
  pinMode(A0,INPUT);
  pinMode(A1,INPUT);
  analogReference(INTERNAL);
 
  // initialize serial communication at 57600 baud
  Serial.begin(57600);
 
 
  // Reset the DDS
  digitalWrite(RESET,HIGH);
  digitalWrite(RESET,LOW);
 
  //Initialise the incoming serial number to zero
  serial_input_number=0;
 
}
 
// the loop routine runs over and over again forever:
void loop() {
 
 
  //Check for character
  if(Serial.available()>0){
    incoming_char = Serial.read();
    switch(incoming_char){
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
      serial_input_number=serial_input_number*10+(incoming_char-'0');
      break;
    case 'A':
      //Turn frequency into FStart
      Fstart_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'B':
      //Turn frequency into FStop
      Fstop_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'C':
      //Turn frequency into FStart and set DDS output to single frequency
      Fstart_MHz = ((double)serial_input_number)/1000000;
      //SetDDSFreq(Fstart_MHz);
      SetDDSFreq(Fstart_MHz * 1000000);
      delay(100);
      SetDDSFreq(Fstart_MHz * 1000000);
      serial_input_number=0;    
      break;
    case 'N':
      // Set number of steps in the sweep
      num_steps = serial_input_number;
      serial_input_number=0;
      break;
    case 'S':    
    case 's':    
      Perform_sweep();
      break;
    case '?':
      // Report current configuration to PC    
      Serial.print("Start Freq:");
      Serial.println(Fstart_MHz*1000000);
      Serial.print("Stop Freq:");
      Serial.println(Fstop_MHz*1000000);
      Serial.print("Num Steps:");
      Serial.println(num_steps);
      break;
    }
    Serial.flush();     
  } 
 
  //Perform Sweep nach Interrupt PIN2 oder 3
  // ingnoriere Startup Interrupts durch counter
  if (flag == 1 && counter >2) 
  {
    flag = 0;
    Perform_sweep(); 
 
  }
}
 
 
void Perform_sweep(){
  double FWD=0;
  double REV=0;
  double VSWR;
  double Fstep_MHz = (Fstop_MHz-Fstart_MHz)/num_steps;
 
  z = 0;
  SwrMin = 100;
 
  ucg.clearScreen();
  ucg.setFont(ucg_font_9x15_tf);
  ucg.setColor(255, 0, 100); 
  ucg.setPrintPos(35,60);
  ucg.print("Analiz KSW");
 
  // Start loop 
  for(int i=0;i<=num_steps;i++){
    // Calculate current frequency
    current_freq_MHz = Fstart_MHz + i*Fstep_MHz;
    // Set DDS to current frequency
    SetDDSFreq(current_freq_MHz*1000000);
    // Wait a little for settling
    //delay(10);
    delay(100);
    // Read the forward and reverse voltages
    REV = analogRead(A0);
    FWD = analogRead(A1);
 
    //Offset Korrektur
    REV = REV-1;
 
    if(REV>=FWD){
      REV = FWD-1;
    }
 
    if (REV <1) {
      REV = 1;
    }
 
    VSWR = (FWD+REV)/(FWD-REV);
 
    //Skalieren für Ausgabe
    VSWR = VSWR * 1000;
 
 
    // Send current line back to PC over serial bus
    Serial.print(current_freq_MHz*1000000);
    Serial.print(",0,");
    Serial.print(VSWR);
    Serial.print(",");
    Serial.print(FWD);
    Serial.print(",");
    Serial.println(REV);
 
 
    // Übergebe SWR an Array
    // ERmittele Freq bei niedrigsten SWR
    vswrArray[z] = VSWR/1000;
 
    if (vswrArray[z] > 10) vswrArray[z] = 10;
 
    if (vswrArray[z] < SwrMin && vswrArray[z] > 1) 
    {
      SwrMin = vswrArray[z];
      SwrFreq = current_freq_MHz;
 
    }    
 
    z = z + 1;
 
  }
 
  // Send "End" to PC to indicate end of sweep
  Serial.println("End");
  Serial.flush(); 
  ucg.clearScreen();
  //Zeichne Grid
  CreateGrid();
 
 
  ucg.setColor(76, 255, 0);
 
  // Draw Line
 
  double last = 10;
  double xx = 6;
  double j = 1;
 
  for (int i = 1 ;i < 103; i++){
    xx = vswrArray[i];
 
 
    ucg.drawLine(j,105-last*9, j+1, 105-xx*9);
    ucg.drawLine(j+1,105-last*9, j+2, 105-xx*9);
 
    j = j + 1.5;
    last = xx;  
  }     
}
 
// Setze DDS Frequenz
void SetDDSFreq(double Freq_Hz){
  // Calculate the DDS word - from AD9850 Datasheet
  int32_t f = Freq_Hz * 4294967295/125000000;
  // Send one byte at a time
  for (int b=0;b<4;b++,f>>=8){
    send_byte(f & 0xFF);
  }
  // 5th byte needs to be zeros
  send_byte(0);
  // Strobe the Update pin to tell DDS to use values
  digitalWrite(FQ_UD,HIGH);
  digitalWrite(FQ_UD,LOW);
}
 
// Sende Daten an DDS
void send_byte(byte data_to_send){
  // Bit bang the byte over the SPI bus
  for (int i=0; i<8; i++,data_to_send>>=1){
    // Set Data bit on output pin
    digitalWrite(SDAT,data_to_send & 0x01);
    // Strobe the clock pin
    digitalWrite(SCLK,HIGH);
    digitalWrite(SCLK,LOW);
  }
}
 
 
//Zeichne Grid auf TFT Display  
void CreateGrid()
{
  //ucg.clearScreen();
 
  double maxSwr = 10;
  ucg.setFont(ucg_font_9x15_tf);
  ucg.drawHLine(0,60,155);
  ucg.drawHLine(0,98,155);
 
 
  ucg.drawVLine(39,15,90);
  ucg.drawVLine(78,15,90);
  ucg.drawVLine(117,15,90);
 
 
  ucg.setPrintPos(0, 118);
  ucg.print(Freq1,3);
 
  ucg.setPrintPos(65, 118);
  ucg.print(Freq2,3);
 
  ucg.setPrintPos(130, 118);
  ucg.print(Freq3,3);
 
  ucg.setPrintPos(1, 11);
  ucg.print("SWR");
 
  ucg.setPrintPos(30, 11);
  ucg.print(SwrMin,2);
 
  ucg.setPrintPos(65, 11);
  ucg.print(">");
 
  ucg.setPrintPos(75, 11);
  ucg.print(maxSwr,2);
 
  ucg.setPrintPos(125, 11);
  ucg.print(SwrFreq,3);
 
  ucg.drawRFrame(0,15,155,90, 1);
 
}  
 
// Interrupt Service Routine
// Abfrage Low an Pin 2
void key2()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1; 
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  Fstart_MHz = 1;  // Start Frequency for sweep
  Fstop_MHz = 30;  // Stop Frequency for sweep
  num_steps = 102; // Steps
  Freq1 = 1;       // Unterste Zeile Display Freq. Links
  Freq2 = 15;      // Unterste Zeile Display Freq. Mitte
  Freq3 = 30;      // Unterste Zeile Display Freq. Recht
 
  //Perform_sweep();
  flag = 1;
 
}
 
// Interrupt Service Routine
// Abfrage Low an Pin 3
void key3()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1;  
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  int x = SwrFreq + 0.5; //Runde auf Mhz
 
  Fstart_MHz = x-1;  // Start Frequency for sweep
  Fstop_MHz = x+1;   // Stop Frequency for sweep
  num_steps = 102;  // Steps
 
  Freq1 = x-1;      // Unterste Zeile Display Freq. Links
  Freq2 = x;        // Unterste Zeile Display Freq. Mitte
  Freq3 = x+1;      // Unterste Zeile Display Freq. Rechts
 
  //Perform_sweep();
  flag = 1;
 
}
 
 
 
                         плюс Русский текст , он в том - же скетче :
 
const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,
  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,
  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,
  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,
  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,
  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,
  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,
  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,
  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,
  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,
  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,
  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,
  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,
  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,
  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,
  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,
  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,
  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,
  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,
  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,
  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,
  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,
  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,
  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,
  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,
  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,
  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,
  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,
  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,
  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,
  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,
  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,
  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,
  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,
  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,
  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,
  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,
  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,
  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,
  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,
  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,
  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,
  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,
  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,
  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,
  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,
  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,
  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,
  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,
  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,
  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,
  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,
  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,
  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,
  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,
  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,
  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,
  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,
  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,
  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,
  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,
  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,
  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,
  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,
  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,
  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,
  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,
  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,
  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,
  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,
  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,
  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,
  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,
  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,
  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,
  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,
  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,
  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,
  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,
  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,
  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,
  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,
  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,
  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,
  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,
  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,
  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,
  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,
  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,
  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,
  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,
  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,
  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,
  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,
  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,
  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,
  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,
  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,
  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,
  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,
  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,
  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,
  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,
  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,
  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,
  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,
  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,
  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,
  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,
  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,
  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,
  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,
  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,
  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,
  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,
  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,
  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,
  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,
  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,
  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,
  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,
  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,
  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,
  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,
  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,
  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,
  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,
  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,
  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,
  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,
  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,
  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,
  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,
  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,
  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,
  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,
  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,
  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,
  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,
  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,
  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,
  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,
  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,
  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,
  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,
  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,
  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,
  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,
  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,
  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,
  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,
  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,
  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,
  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,
  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,
  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,
  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,
  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,
  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,
  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,
  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,
  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,
  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,
  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,
  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,
  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,
  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,
  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,
  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,
  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,
  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,
  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,
  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,
  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,
  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,
  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,
  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,
  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,
  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,
  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,
  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,
  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,
  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,
  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,
  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,
  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,
  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,
  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,
  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,
  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,
  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,
  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,
  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,
  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,
  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,
  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,
  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,
  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,
  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,
  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,
  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,
  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,
  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,
  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,
  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,
  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,
  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,
  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,
  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,
  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,
  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,
  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,
  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,
  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,
  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,
  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,
  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,
  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,
  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,
  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,
  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,
  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,
  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,
  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,
  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,
  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,
  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,
  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,
  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,
  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,
  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,
  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,
  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,
  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,
  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,
  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,
  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,
  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,
  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,
  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,
  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,
  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,
  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,
  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,
  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,
  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,
  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,               255,255,255,255,255,255,255,255,255,255,255,255,255};
 
   За ранее благодарен.
ua6em
ua6em аватар
Offline
Зарегистрирован: 17.08.2016
 /***************************************************************************\
 *  Name    : DDS_Sweeper.BAS                                                *
 *  Author  : Beric Dunn (K6BEZ)                                             *
 *  Notice  : Copyright (c) 2013  CC-BY-SA                                   *
 *          : Creative Commons Attribution-ShareAlike 3.0 Unported License   *
 *  Date    : 9/26/2013                                                      *
 *  Version : 1.0                                                            *
 *  Notes   : Written using for the Arduino Micro                            *
 *          :   Pins:                                                        *
 *          :   A0 - Reverse Detector Analog in                              *
 *          :   A1 - Forward Detector Analog in                              *
 *          : Modified by Norbert Redeker (DG7EAO) 07/2014                   *
 *          : TFT Display mit ILI9341 Chip, SPI, 240 x 320                   *
 *          : usglib Grafik Bibliothek   https://code.google.com/p/ucglib/   *
 \***************************************************************************/
 
#include <SPI.h>
#include "Ucglib.h"
#include "rusFont.h"
 
// Define Pins used to control AD9850 DDS
 
const int FQ_UD=11;
const int SDAT=10;
const int SCLK=12;
const int RESET=9;
 
// Variablen für Display
double vswrArray[110]; //Array für SWR
int z = 0;            // Index für Array
double SwrFreq = 14;  // Variable für Freq. mit SWR Min.
double SwrMin = 100;   // Variable für SWR Min.
double Freq1 = 1;     // Freq. Links unterste Zeile Display
double Freq2 = 15;    // Freq. Mitte unterste Zeile Display
double Freq3 = 30;    // Freq. Mitte unterste Zeile Display
unsigned long milliold = 0;  //Millisekunden für Entprellung Interrupt
unsigned long millinew = 0;  //Millisekunden für Entprellung Interrupt
int flag = 0;                // wir auf 1 gesetzt bei Interrupt, in void Loop perform_sweep
double counter = 0;          // Zähler um erste Interrupts zu ignorieren
 
// Variablen für Messung
double Fstart_MHz = 1;  // Start Frequency for sweep
double Fstop_MHz = 30;  // Stop Frequency for sweep
double current_freq_MHz; // Temp variable used during sweep
long serial_input_number; // Used to build number from serial stream
int num_steps = 100; // Number of steps to use in the sweep
char incoming_char; // Character read from serial stream
 
 
//Konstruktor für Display
Ucglib_ST7735_18x128x160_SWSPI ucg(/*sclk=*/ 12, /*data=*/ 10, /*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);
 
 
// the setup routine runs once when you press reset:
void setup() {
 
  // Voltmetr
  analogReference(INTERNAL);
  float Vbat = (analogRead(A5) * 1.1) / 1023.0;
  float Vin = Vbat / (69.8 / (783.0 + 69.8)); // R2/(R1+R2)
 
  // Schreibe Info Text auf Display
  ucg.begin(UCG_FONT_MODE_SOLID);
  ucg.clearScreen();
 
  ucg.setRotate90();
  ucg.setFont(ucg_font_9x15_tf);
  ucg.setColor(255, 255, 255); 
 
  ucg.setPrintPos(10,20);
  ucg.print("Arduino Antenna");
  ucg.setPrintPos(25,40);
  ucg.print("SWR Analyzer");
  ucg.setPrintPos(35,60);
  ucg.print("1-30 MHz");
  ucg.setPrintPos(20,80);
  ucg.print("Komsomolsk 2017");
  ucg.setPrintPos(5,128);
  ucg.print("BAT");
  ucg.setPrintPos(40,128);
  ucg.print(Vin, 1);
 
 
  // Configiure DDS control pins for digital output
  pinMode(FQ_UD,OUTPUT);
  pinMode(SCLK,OUTPUT);
  pinMode(SDAT,OUTPUT);
  pinMode(RESET,OUTPUT);
 
  //Tasten Interrupt an PIN 2
  pinMode(2,OUTPUT);
  digitalWrite(2, HIGH);
  attachInterrupt(0, key2, FALLING);
  unsigned long milliold = millis();
 
  //Tasten Interrupt an PIN 3
  pinMode(3,OUTPUT);
  digitalWrite(3, HIGH);
  attachInterrupt(1, key3, FALLING);
  //milliold = millis();
 
  // Configure LED pin for digital output
  pinMode(13,OUTPUT);
 
 
  // Set up analog inputs on A0 and A1, internal reference voltage
  pinMode(A0,INPUT);
  pinMode(A1,INPUT);
  analogReference(INTERNAL);
 
  // initialize serial communication at 57600 baud
  Serial.begin(57600);
 
 
  // Reset the DDS
  digitalWrite(RESET,HIGH);
  digitalWrite(RESET,LOW);
 
  //Initialise the incoming serial number to zero
  serial_input_number=0;
 
}
 
// the loop routine runs over and over again forever:
void loop() {
 
 
  //Check for character
  if(Serial.available()>0){
    incoming_char = Serial.read();
    switch(incoming_char){
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
      serial_input_number=serial_input_number*10+(incoming_char-'0');
      break;
    case 'A':
      //Turn frequency into FStart
      Fstart_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'B':
      //Turn frequency into FStop
      Fstop_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'C':
      //Turn frequency into FStart and set DDS output to single frequency
      Fstart_MHz = ((double)serial_input_number)/1000000;
      //SetDDSFreq(Fstart_MHz);
      SetDDSFreq(Fstart_MHz * 1000000);
      delay(100);
      SetDDSFreq(Fstart_MHz * 1000000);
      serial_input_number=0;    
      break;
    case 'N':
      // Set number of steps in the sweep
      num_steps = serial_input_number;
      serial_input_number=0;
      break;
    case 'S':    
    case 's':    
      Perform_sweep();
      break;
    case '?':
      // Report current configuration to PC    
      Serial.print("Start Freq:");
      Serial.println(Fstart_MHz*1000000);
      Serial.print("Stop Freq:");
      Serial.println(Fstop_MHz*1000000);
      Serial.print("Num Steps:");
      Serial.println(num_steps);
      break;
    }
    Serial.flush();     
  } 
 
  //Perform Sweep nach Interrupt PIN2 oder 3
  // ingnoriere Startup Interrupts durch counter
  if (flag == 1 && counter >2) 
  {
    flag = 0;
    Perform_sweep(); 
 
  }
}
 
 
void Perform_sweep(){
  double FWD=0;
  double REV=0;
  double VSWR;
  double Fstep_MHz = (Fstop_MHz-Fstart_MHz)/num_steps;
 
  z = 0;
  SwrMin = 100;
 
  ucg.clearScreen();
  ucg.setFont(ucg_font_9x15_tf);
  ucg.setColor(255, 0, 100); 
  ucg.setPrintPos(35,60);
  ucg.print("Analiz KSW");
 
  // Start loop 
  for(int i=0;i<=num_steps;i++){
    // Calculate current frequency
    current_freq_MHz = Fstart_MHz + i*Fstep_MHz;
    // Set DDS to current frequency
    SetDDSFreq(current_freq_MHz*1000000);
    // Wait a little for settling
    //delay(10);
    delay(100);
    // Read the forward and reverse voltages
    REV = analogRead(A0);
    FWD = analogRead(A1);
 
    //Offset Korrektur
    REV = REV-1;
 
    if(REV>=FWD){
      REV = FWD-1;
    }
 
    if (REV <1) {
      REV = 1;
    }
 
    VSWR = (FWD+REV)/(FWD-REV);
 
    //Skalieren für Ausgabe
    VSWR = VSWR * 1000;
 
 
    // Send current line back to PC over serial bus
    Serial.print(current_freq_MHz*1000000);
    Serial.print(",0,");
    Serial.print(VSWR);
    Serial.print(",");
    Serial.print(FWD);
    Serial.print(",");
    Serial.println(REV);
 
 
    // Übergebe SWR an Array
    // ERmittele Freq bei niedrigsten SWR
    vswrArray[z] = VSWR/1000;
 
    if (vswrArray[z] > 10) vswrArray[z] = 10;
 
    if (vswrArray[z] < SwrMin && vswrArray[z] > 1) 
    {
      SwrMin = vswrArray[z];
      SwrFreq = current_freq_MHz;
 
    }    
 
    z = z + 1;
 
  }
 
  // Send "End" to PC to indicate end of sweep
  Serial.println("End");
  Serial.flush(); 
  ucg.clearScreen();
  //Zeichne Grid
  CreateGrid();
 
 
  ucg.setColor(76, 255, 0);
 
  // Draw Line
 
  double last = 10;
  double xx = 6;
  double j = 1;
 
  for (int i = 1 ;i < 103; i++){
    xx = vswrArray[i];
 
 
    ucg.drawLine(j,105-last*9, j+1, 105-xx*9);
    ucg.drawLine(j+1,105-last*9, j+2, 105-xx*9);
 
    j = j + 1.5;
    last = xx;  
  }     
}
 
// Setze DDS Frequenz
void SetDDSFreq(double Freq_Hz){
  // Calculate the DDS word - from AD9850 Datasheet
  int32_t f = Freq_Hz * 4294967295/125000000;
  // Send one byte at a time
  for (int b=0;b<4;b++,f>>=8){
    send_byte(f & 0xFF);
  }
  // 5th byte needs to be zeros
  send_byte(0);
  // Strobe the Update pin to tell DDS to use values
  digitalWrite(FQ_UD,HIGH);
  digitalWrite(FQ_UD,LOW);
}
 
// Sende Daten an DDS
void send_byte(byte data_to_send){
  // Bit bang the byte over the SPI bus
  for (int i=0; i<8; i++,data_to_send>>=1){
    // Set Data bit on output pin
    digitalWrite(SDAT,data_to_send & 0x01);
    // Strobe the clock pin
    digitalWrite(SCLK,HIGH);
    digitalWrite(SCLK,LOW);
  }
}
 
 
//Zeichne Grid auf TFT Display  
void CreateGrid()
{
  //ucg.clearScreen();
 
  double maxSwr = 10;
  ucg.setFont(ucg_font_9x15_tf);
  ucg.drawHLine(0,60,155);
  ucg.drawHLine(0,98,155);
 
 
  ucg.drawVLine(39,15,90);
  ucg.drawVLine(78,15,90);
  ucg.drawVLine(117,15,90);
 
 
  ucg.setPrintPos(0, 118);
  ucg.print(Freq1,3);
 
  ucg.setPrintPos(65, 118);
  ucg.print(Freq2,3);
 
  ucg.setPrintPos(130, 118);
  ucg.print(Freq3,3);
 
  ucg.setPrintPos(1, 11);
  ucg.print("SWR");
 
  ucg.setPrintPos(30, 11);
  ucg.print(SwrMin,2);
 
  ucg.setPrintPos(65, 11);
  ucg.print(">");
 
  ucg.setPrintPos(75, 11);
  ucg.print(maxSwr,2);
 
  ucg.setPrintPos(125, 11);
  ucg.print(SwrFreq,3);
 
  ucg.drawRFrame(0,15,155,90, 1);
 
}  
 
// Interrupt Service Routine
// Abfrage Low an Pin 2
void key2()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1; 
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  Fstart_MHz = 1;  // Start Frequency for sweep
  Fstop_MHz = 30;  // Stop Frequency for sweep
  num_steps = 102; // Steps
  Freq1 = 1;       // Unterste Zeile Display Freq. Links
  Freq2 = 15;      // Unterste Zeile Display Freq. Mitte
  Freq3 = 30;      // Unterste Zeile Display Freq. Recht
 
  //Perform_sweep();
  flag = 1;
 
}
 
// Interrupt Service Routine
// Abfrage Low an Pin 3
void key3()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1;  
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  int x = SwrFreq + 0.5; //Runde auf Mhz
 
  Fstart_MHz = x-1;  // Start Frequency for sweep
  Fstop_MHz = x+1;   // Stop Frequency for sweep
  num_steps = 102;  // Steps
 
  Freq1 = x-1;      // Unterste Zeile Display Freq. Links
  Freq2 = x;        // Unterste Zeile Display Freq. Mitte
  Freq3 = x+1;      // Unterste Zeile Display Freq. Rechts
 
  //Perform_sweep();
  flag = 1;
 
}
 
 
 
  плюс Русский текст , он в том - же скетче- const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,
  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,
  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,
  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,
  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,
  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,
  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,
  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,
  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,
  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,
  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,
  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,
  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,
  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,
  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,
  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,
  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,
  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,
  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,
  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,
  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,
  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,
  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,
  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,
  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,
  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,
  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,
  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,
  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,
  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,
  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,
  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,
  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,
  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,
  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,
  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,
  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,
  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,
  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,
  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,
  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,
  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,
  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,
  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,
  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,
  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,
  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,
  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,
  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,
  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,
  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,
  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,
  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,
  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,
  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,
  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,
  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,
  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,
  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,
  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,
  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,
  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,
  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,
  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,
  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,
  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,
  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,
  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,
  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,
  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,
  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,
  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,
  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,
  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,
  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,
  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,
  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,
  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,
  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,
  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,
  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,
  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,
  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,
  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,
  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,
  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,
  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,
  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,
  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,
  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,
  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,
  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,
  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,
  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,
  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,
  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,
  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,
  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,
  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,
  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,
  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,
  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,
  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,
  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,
  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,
  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,
  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,
  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,
  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,
  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,
  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,
  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,
  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,
  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,
  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,
  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,
  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,
  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,
  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,
  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,
  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,
  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,
  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,
  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,
  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,
  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,
  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,
  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,
  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,
  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,
  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,
  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,
  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,
  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,
  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,
  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,
  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,
  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,
  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,
  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,
  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,
  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,
  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,
  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,
  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,
  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,
  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,
  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,
  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,
  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,
  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,
  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,
  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,
  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,
  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,
  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,
  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,
  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,
  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,
  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,
  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,
  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,
  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,
  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,
  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,
  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,
  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,
  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,
  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,
  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,
  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,
  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,
  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,
  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,
  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,
  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,
  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,
  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,
  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,
  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,
  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,
  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,
  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,
  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,
  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,
  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,
  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,
  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,
  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,
  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,
  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,
  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,
  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,
  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,
  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,
  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,
  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,
  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,
  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,
  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,
  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,
  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,
  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,
  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,
  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,
  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,
  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,
  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,
  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,
  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,
  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,
  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,
  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,
  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,
  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,
  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,
  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,
  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,
  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,
  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,
  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,
  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,
  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,
  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,
  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,
  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,
  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,
  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,
  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,
  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,
  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,
  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,
  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,
  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,
  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,
  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,
  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,
  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,
  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,
  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,
  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,
  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,
  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,
  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,
  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,
  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,
  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 
  255,255,255,255,255,255,255,255,255,255,255,255,255};

Выкладывать надо по правилам форума

 

DAFdriver
Offline
Зарегистрирован: 12.08.2016

Извиняюсь это мое первое сообщение.

Jeka_M
Jeka_M аватар
Онлайн
Зарегистрирован: 06.07.2014

DAFdriver пишет:

И сразу проблемка - неполучается прошить arduino nano . 

Информации недостаточно. Расшифруйте подробно ваше "неполучается прошить".

DAFdriver
Offline
Зарегистрирован: 12.08.2016

          Пишет ошибка компиляции

 

Arduino: 1.8.1 (Windows 7), Плата:"Arduino Nano, ATmega328"

 
C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi\DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory
 
 #include "Ucglib.h"
 
                    ^
 
compilation terminated.
 
exit status 1
Ошибка компиляции для платы Arduino Nano.
 
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
 
 
       вот сподключеной ардуиной 
 
  Arduino: 1.8.1 (Windows 7), Плата:"Arduino Nano, ATmega328"
 
C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi\DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory
 
 #include "Ucglib.h"
 
                    ^
 
compilation terminated.
 
exit status 1
Ошибка компиляции для платы Arduino Nano.
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt: C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master: C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield: C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TSCalibration: C:\Program Files (x86)\Arduino\libraries\TSCalibration
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt: C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master: C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield: C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TSCalibration: C:\Program Files (x86)\Arduino\libraries\TSCalibration
 
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
 
 
vovan_UA
Offline
Зарегистрирован: 27.05.2017

ну а с моими ошибками кто подскажет что делать если это возможно конечно

Скетч использует 21464 байт (69%) памяти устройства. Всего доступно 30720 байт.
Глобальные переменные используют 977 байт (47%) динамической памяти, оставляя 1071 байт для локальных переменных. Максимум: 2048 байт.
avrdude: verification error, first mismatch at byte 0x0042
         0xf1 != 0x1d
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
T.Rook
Offline
Зарегистрирован: 05.03.2016

DAFdriver пишет:

  DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory

 
 #include "Ucglib.h"
 

нет бибиотеки (или не найдена) Ucglib.h. Т.к. в скетче написано "Ucglib.h" то библтотека ожидается в каталоге файла ".ino". Если библиотека лежит в \libraries, то исправьте на:  #include <Ucglib.h>

T.Rook
Offline
Зарегистрирован: 05.03.2016

vovan_UA пишет:

ну а с моими ошибками кто подскажет что делать если это возможно конечно

avrdude: verification error, first mismatch at byte 0x0042
         0xf1 != 0x1d

Если Вы полностью исключаете сбои по питанию (и ресету), и ошибка всегда на одном месте (на разных скетчах) "first mismatch at byte 0x0042" - то в мусор :(

UPD: хотя ВОТ написано что подобное было из-за драйвера

vovan_UA
Offline
Зарегистрирован: 27.05.2017

Да вот как раз ошибка всегда на одном месте а так врди загрузка проходит нормально единственое при проверке и возникает эта ошибка а загрузчик не мог слететь случайно или это уже самой памяти гаплык просто это пошло после ппытки загрузить скетч при помощи XLoader хотя рание было все нормально 

T.Rook
Offline
Зарегистрирован: 05.03.2016

vovan_UA пишет:

Да вот как раз ошибка всегда на одном месте а так врди загрузка проходит нормально единственое при проверке и возникает эта ошибка а загрузчик не мог слететь случайно или это уже самой памяти гаплык просто это пошло после ппытки загрузить скетч при помощи XLoader хотя рание было все нормально 

Это легко проверить: пробовали  перезаписать загрузчик?

qwone
qwone аватар
Offline
Зарегистрирован: 03.07.2016

DAFdriver

Ucglib.h: No such file or directory         // нет файла в директории
 
 #include "Ucglib.h"
 
                    ^   //<--а вот вам стрелочкой компилятор показывает
 
compilation terminated.

Нельзя же быть таким безголовым

DAFdriver
Offline
Зарегистрирован: 12.08.2016

Так что на чтои где исправить.Я в этом деле зеленый бегемот.

qwone
qwone аватар
Offline
Зарегистрирован: 03.07.2016
#include "Ucglib.h"    //<-это можно найти здесь https://code.google.com/p/ucglib/   *
#include "rusFont.h"    //<- а вот это хер знает где
   и не беритесь за сложные проекты это вам не игры на планшет заливать

 

DAFdriver
Offline
Зарегистрирован: 12.08.2016

  Спасибо буду пытаться. На счет игр мне 56лет ,я ими не занимаюсь . Занимаюсь настройкой CI-Bi антенн и ремонтом радиостанций , устанавливааю  и обслуживаю пожарные , охранные сигнализации и видео наблюдение. Там приходится пршивать датчики и приборы , нотам все проще .

 

 

vovan_UA
Offline
Зарегистрирован: 27.05.2017

T.Rook пишет:

Это легко проверить: пробовали  перезаписать загрузчик?

Не пробовал просто незнаю как с таким столкнулся в первые а из самой среды не получается выдает ошибку пробовал и при помощи USBASP он ее вобще отказывается видить а этот PL2303HX видит ну так же выдает шибку а как ещо просто незна есть ещо в наличие R3 MEGA328P ATMEGA16U2 со сьемной микрухой ну вот как к нему правильно подключится найти не могу 

T.Rook
Offline
Зарегистрирован: 05.03.2016

vovan_UA пишет:

Не пробовал просто незнаю как с таким столкнулся в первые а из самой среды не получается выдает ошибку пробовал и при помощи USBASP он ее вобще отказывается видить а этот PL2303HX видит ну так же выдает шибку а как ещо просто незна есть ещо в наличие R3 MEGA328P ATMEGA16U2 со сьемной микрухой ну вот как к нему правильно подключится найти не могу 

Легко гуглится по "arduino isp программатор".

В качестве немного бредовой идеи на "поискать и почитать много непонятного": если вылетела одна ячейка, то, наверное. можно натйти опции компиляции HEX файла, что бы рабочий код начинался после сбойного адреса.  Может кто подскажет vovan_UA?

 

vovan_UA
Offline
Зарегистрирован: 27.05.2017

T.Rook пишет:

UPD: хотя ВОТ написано что подобное было из-за драйвера

Ну с драйверами тут все в порядке прост у меня таких платок несколько и в другую все записалось без проблем а с этой непонятка такая и такое ощущение что прсто предыдущая прошивка сидит внутри и невкаку не хочет затираться 

ua6em
ua6em аватар
Offline
Зарегистрирован: 17.08.2016

qwone пишет:

#include "rusFont.h"    //<- а вот это хер знает где

А это разве не оно?
Добавить в проект файлик с этим имененм и содержимое в этот файл разместить, или я что-то путаю???
 

const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,.....................................
 
Файлик "rusFont.h" - файлик должен лежать в каталоге со скетчем
const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,
  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,
  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,
  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,
  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,
  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,
  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,
  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,
  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,
  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,
  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,
  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,
  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,
  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,
  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,
  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,
  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,
  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,
  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,
  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,
  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,
  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,
  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,
  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,
  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,
  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,
  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,
  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,
  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,
  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,
  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,
  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,
  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,
  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,
  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,
  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,
  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,
  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,
  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,
  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,
  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,
  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,
  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,
  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,
  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,
  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,
  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,
  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,
  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,
  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,
  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,
  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,
  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,
  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,
  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,
  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,
  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,
  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,
  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,
  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,
  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,
  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,
  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,
  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,
  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,
  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,
  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,
  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,
  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,
  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,
  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,
  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,
  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,
  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,
  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,
  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,
  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,
  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,
  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,
  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,
  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,
  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,
  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,
  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,
  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,
  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,
  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,
  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,
  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,
  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,
  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,
  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,
  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,
  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,
  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,
  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,
  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,
  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,
  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,
  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,
  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,
  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,
  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,
  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,
  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,
  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,
  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,
  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,
  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,
  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,
  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,
  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,
  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,
  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,
  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,
  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,
  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,
  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,
  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,
  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,
  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,
  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,
  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,
  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,
  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,
  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,
  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,
  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,
  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,
  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,
  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,
  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,
  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,
  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,
  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,
  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,
  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,
  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,
  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,
  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,
  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,
  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,
  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,
  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,
  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,
  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,
  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,
  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,
  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,
  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,
  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,
  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,
  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,
  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,
  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,
  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,
  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,
  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,
  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,
  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,
  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,
  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,
  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,
  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,
  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,
  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,
  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,
  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,
  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,
  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,
  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,
  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,
  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,
  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,
  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,
  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,
  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,
  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,
  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,
  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,
  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,
  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,
  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,
  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,
  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,
  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,
  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,
  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,
  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,
  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,
  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,
  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,
  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,
  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,
  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,
  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,
  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,
  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,
  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,
  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,
  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,
  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,
  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,
  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,
  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,
  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,
  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,
  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,
  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,
  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,
  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,
  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,
  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,
  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,
  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,
  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,
  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,
  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,
  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,
  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,
  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,
  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,
  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,
  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,
  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,
  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,
  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,
  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,
  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,
  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,
  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,
  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,
  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,
  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,
  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,
  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,
  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,
  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,
  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,
  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,
  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,
  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,
  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,
  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,
  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,
  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,
  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 
  255,255,255,255,255,255,255,255,255,255,255,255,255};

 

 

DAFdriver
Offline
Зарегистрирован: 12.08.2016

      Так он там есть , может не правильный . пост 29 .

ua6em
ua6em аватар
Offline
Зарегистрирован: 17.08.2016

DAFdriver пишет:

      Так он там есть , может не правильный . пост 29 .

не в скетче, а в отдельном файле, точно есть? и имя файла соответствует? сомневаюсь )))

DAFdriver
Offline
Зарегистрирован: 12.08.2016

Да в отдельной папке . В ide на белом фоне DDS_sveper1_TFT_ST7735_128X160_V4hvspi рядом на синем фоне rusFont.h и далее

 /***************************************************************************\

 *  Name    : DDS_Sweeper.BAS                                                *
 *  Author  : Beric Dunn (K6BEZ)                                             *
 *  Notice  : Copyright (c) 2013  CC-BY-SA                                   *
 *          : Creative Commons Attribution-ShareAlike 3.0 Unported License   *
 *  Date    : 9/26/2013                                                      *
 *  Version : 1.0                                                            *
 *  Notes   : Written using for the Arduino Micro                            *
 *          :   Pins:                                                        *
 *          :   A0 - Reverse Detector Analog in                              *
 *          :   A1 - Forward Detector Analog in                              *
 *          : Modified by Norbert Redeker (DG7EAO) 07/2014                   *
 *          : TFT Display mit ILI9341 Chip, SPI, 240 x 320                   *
 *          : usglib Grafik Bibliothek   https://code.google.com/p/ucglib/   *
 \***************************************************************************/
 
#include <SPI.h>
#include "Ucglib.h"
#include "rusFont.h"
 
// Define Pins used to control AD9850 DDS
 
const int FQ_UD=9;
const int SDAT=7;
const int SCLK=10;
const int RESET=12;
 
// Variablen für Display
double vswrArray[110]; //Array für SWR
int z = 0;            // Index für Array
double SwrFreq = 14;  // Variable für Freq. mit SWR Min.
double SwrMin = 100;   // Variable für SWR Min.
double Freq1 = 1;     // Freq. Links unterste Zeile Display
double Freq2 = 15;    // Freq. Mitte unterste Zeile Display
double Freq3 = 30;    // Freq. Mitte unterste Zeile Display
unsigned long milliold = 0;  //Millisekunden für Entprellung Interrupt
unsigned long millinew = 0;  //Millisekunden für Entprellung Interrupt
int flag = 0;                // wir auf 1 gesetzt bei Interrupt, in void Loop perform_sweep
double counter = 0;          // Zähler um erste Interrupts zu ignorieren
 
// Variablen für Messung
double Fstart_MHz = 1;  // Start Frequency for sweep
double Fstop_MHz = 30;  // Stop Frequency for sweep
double current_freq_MHz; // Temp variable used during sweep
long serial_input_number; // Used to build number from serial stream
int num_steps = 100; // Number of steps to use in the sweep
char incoming_char; // Character read from serial stream
 
 
//Konstruktor für Display
Ucglib_ST7735_18x128x160_HWSPI ucg(/*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);
 
 
// the setup routine runs once when you press reset:
void setup() {
 
  // Voltmetr
  analogReference(INTERNAL);
  float Vbat = (analogRead(A5) * 1.1) / 1023.0;
  float Vin = Vbat / (89.8 / (783.0 + 89.8)); // R2/(R1+R2)
 
  // Schreibe Info Text auf Display
  ucg.begin(UCG_FONT_MODE_SOLID);
  ucg.clearScreen();
 
  ucg.setRotate90();
  ucg.setFont(my14x10rus);
  ucg.setColor(255, 255, 255); 
 
 
  ucg.setPrintPos(32,25);
  ucg.print("Панорамный");
  ucg.setPrintPos(40,45);
  ucg.print("КСВ Метр");
  ucg.setPrintPos(40,65);
  ucg.print("1-30 MHz");
  ucg.setPrintPos(32,90);
  ucg.print("Пенза 2016");
  ucg.setPrintPos(5,128);
  ucg.print("Бат ");
  ucg.setPrintPos(40,128);
  ucg.print(Vin, 1);
 
 
  // Configiure DDS control pins for digital output
  pinMode(FQ_UD,OUTPUT);
  pinMode(SCLK,OUTPUT);
  pinMode(SDAT,OUTPUT);
  pinMode(RESET,OUTPUT);
 
  //Tasten Interrupt an PIN 2
  pinMode(2,OUTPUT);
  digitalWrite(2, HIGH);
  attachInterrupt(0, key2, FALLING);
  unsigned long milliold = millis();
 
  //Tasten Interrupt an PIN 3
  pinMode(3,OUTPUT);
  digitalWrite(3, HIGH);
  attachInterrupt(1, key3, FALLING);
  //milliold = millis();
 
  // Configure LED pin for digital output
  pinMode(13,OUTPUT);
 
 
  // Set up analog inputs on A0 and A1, internal reference voltage
  pinMode(A0,INPUT);
  pinMode(A1,INPUT);
  analogReference(INTERNAL);
 
  // initialize serial communication at 57600 baud
  Serial.begin(57600);
 
 
  // Reset the DDS
  digitalWrite(RESET,HIGH);
  digitalWrite(RESET,LOW);
 
  //Initialise the incoming serial number to zero
  serial_input_number=0;
 
}
 
// the loop routine runs over and over again forever:
void loop() {
 
 
  //Check for character
  if(Serial.available()>0){
    incoming_char = Serial.read();
    switch(incoming_char){
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '7':
    case '8':
    case '9':
      serial_input_number=serial_input_number*10+(incoming_char-'0');
      break;
    case 'A':
      //Turn frequency into FStart
      Fstart_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'B':
      //Turn frequency into FStop
      Fstop_MHz = ((double)serial_input_number)/1000000;
      serial_input_number=0;
      break;
    case 'C':
      //Turn frequency into FStart and set DDS output to single frequency
      Fstart_MHz = ((double)serial_input_number)/1000000;
      //SetDDSFreq(Fstart_MHz);
      SetDDSFreq(Fstart_MHz * 1000000);
      delay(100);
      SetDDSFreq(Fstart_MHz * 1000000);
      serial_input_number=0;    
      break;
    case 'N':
      // Set number of steps in the sweep
      num_steps = serial_input_number;
      serial_input_number=0;
      break;
    case 'S':    
    case 's':    
      Perform_sweep();
      break;
    case '?':
      // Report current configuration to PC    
      Serial.print("Start Freq:");
      Serial.println(Fstart_MHz*1000000);
      Serial.print("Stop Freq:");
      Serial.println(Fstop_MHz*1000000);
      Serial.print("Num Steps:");
      Serial.println(num_steps);
      break;
    }
    Serial.flush();     
  } 
 
  //Perform Sweep nach Interrupt PIN2 oder 3
  // ingnoriere Startup Interrupts durch counter
  if (flag == 1 && counter >2) 
  {
    flag = 0;
    Perform_sweep(); 
 
  }
}
 
 
void Perform_sweep(){
  double FWD=0;
  double REV=0;
  double VSWR;
  double Fstep_MHz = (Fstop_MHz-Fstart_MHz)/num_steps;
 
  z = 0;
  SwrMin = 100;
 
  ucg.clearScreen();
  ucg.setFont(my14x10rus);
  ucg.setColor(255, 0, 100); 
  ucg.setPrintPos(35,60);
  ucg.print("Анализ КСВ");
 
  // Start loop 
  for(int i=0;i<=num_steps;i++){
    // Calculate current frequency
    current_freq_MHz = Fstart_MHz + i*Fstep_MHz;
    // Set DDS to current frequency
    SetDDSFreq(current_freq_MHz*1000000);
    // Wait a little for settling
    //delay(10);
    delay(100);
    // Read the forward and reverse voltages
    REV = analogRead(A0);
    FWD = analogRead(A1);
 
    //Offset Korrektur
    REV = REV-5;
 
    if(REV>=FWD){
      REV = FWD-1;
    }
 
    if (REV <1) {
      REV = 1;
    }
 
    VSWR = (FWD+REV)/(FWD-REV);
 
    //Skalieren für Ausgabe
    VSWR = VSWR * 1000;
 
 
    // Send current line back to PC over serial bus
    Serial.print(current_freq_MHz*1000000);
    Serial.print(",0,");
    Serial.print(VSWR);
    Serial.print(",");
    Serial.print(FWD);
    Serial.print(",");
    Serial.println(REV);
 
 
    // Übergebe SWR an Array
    // ERmittele Freq bei niedrigsten SWR
    vswrArray[z] = VSWR/1000;
 
    if (vswrArray[z] > 10) vswrArray[z] = 10;
 
    if (vswrArray[z] < SwrMin && vswrArray[z] > 1) 
    {
      SwrMin = vswrArray[z];
      SwrFreq = current_freq_MHz;
 
    }    
 
    z = z + 1;
 
  }
 
  // Send "End" to PC to indicate end of sweep
  Serial.println("End");
  Serial.flush(); 
  ucg.clearScreen();
  //Zeichne Grid
  CreateGrid();
 
 
  ucg.setColor(76, 255, 0);
 
  // Draw Line
 
  double last = 10;
  double xx = 6;
  double j = 1;
 
  for (int i = 1 ;i < 103; i++){
    xx = vswrArray[i];
 
 
    ucg.drawLine(j,105-last*9, j+1, 105-xx*9);
    ucg.drawLine(j+1,105-last*9, j+2, 105-xx*9);
 
    j = j + 1.5;
    last = xx;  
  }     
}
 
// Setze DDS Frequenz
void SetDDSFreq(double Freq_Hz){
  // Calculate the DDS word - from AD9850 Datasheet
  int32_t f = Freq_Hz * 4294967295/125000000;
  // Send one byte at a time
  for (int b=0;b<4;b++,f>>=8){
    send_byte(f & 0xFF);
  }
  // 5th byte needs to be zeros
  send_byte(0);
  // Strobe the Update pin to tell DDS to use values
  digitalWrite(FQ_UD,HIGH);
  digitalWrite(FQ_UD,LOW);
}
 
// Sende Daten an DDS
void send_byte(byte data_to_send){
  // Bit bang the byte over the SPI bus
  for (int i=0; i<8; i++,data_to_send>>=1){
    // Set Data bit on output pin
    digitalWrite(SDAT,data_to_send & 0x01);
    // Strobe the clock pin
    digitalWrite(SCLK,HIGH);
    digitalWrite(SCLK,LOW);
  }
}
 
 
//Zeichne Grid auf TFT Display  
void CreateGrid()
{
  //ucg.clearScreen();
 
  double maxSwr = 10;
  ucg.setFont(ucg_font_5x8);
  ucg.drawHLine(0,60,155);
  ucg.drawHLine(0,98,155);
 
 
  ucg.drawVLine(39,15,90);
  ucg.drawVLine(78,15,90);
  ucg.drawVLine(117,15,90);
 
 
  ucg.setPrintPos(0, 118);
  ucg.print(Freq1,3);
 
  ucg.setPrintPos(65, 118);
  ucg.print(Freq2,3);
 
  ucg.setPrintPos(130, 118);
  ucg.print(Freq3,3);
 
  ucg.setPrintPos(5, 8);
  ucg.print("SWR");
 
  ucg.setPrintPos(30, 8);
  ucg.print(SwrMin,2);
 
  ucg.setPrintPos(58, 8);
  ucg.print(">");
 
  ucg.setPrintPos(65, 8);
  ucg.print(maxSwr,2);
 
  ucg.setPrintPos(125, 8);
  ucg.print(SwrFreq,3);
 
  ucg.drawRFrame(0,15,155,90, 1);
 
}  
 
// Interrupt Service Routine
// Abfrage Low an Pin 2
void key2()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1; 
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  Fstart_MHz = 1;  // Start Frequency for sweep
  Fstop_MHz = 30;  // Stop Frequency for sweep
  num_steps = 102; // Steps
  Freq1 = 1;       // Unterste Zeile Display Freq. Links
  Freq2 = 15;      // Unterste Zeile Display Freq. Mitte
  Freq3 = 30;      // Unterste Zeile Display Freq. Recht
 
  //Perform_sweep();
  flag = 1;
 
}
 
// Interrupt Service Routine
// Abfrage Low an Pin 3
void key3()
{
  //ignoriere Startup Interrupts > counter 
  counter = counter + 1;  
 
  //Entprellen mit millis()
  millinew = millis();
 
  if (millinew - milliold < 1000)
  {
    milliold = millinew;
    return; 
  }
 
  milliold = millinew;
 
  int x = SwrFreq + 0.5; //Runde auf Mhz
 
  Fstart_MHz = x-1;  // Start Frequency for sweep
  Fstop_MHz = x+1;   // Stop Frequency for sweep
  num_steps = 102;  // Steps
 
  Freq1 = x-1;      // Unterste Zeile Display Freq. Links
  Freq2 = x;        // Unterste Zeile Display Freq. Mitte
  Freq3 = x+1;      // Unterste Zeile Display Freq. Rechts
 
  //Perform_sweep();
  flag = 1;
 
}
   кликаем  rusFont.h открывается
  const ucg_fntpgm_uint8_t my14x10rus[4157] UCG_SECTION(".progmem.my14x10") = {
  0,11,15,0,255,14,3,35,6,248,32,255,0,15,255,14,
  0,0,0,0,8,0,0,2,14,14,4,1,0,64,192,192,
  192,192,192,192,192,192,128,0,64,192,128,6,5,5,7,0,
  9,68,204,204,204,136,10,14,28,11,0,0,8,128,8,128,
  17,0,17,0,127,192,17,0,17,0,34,0,34,0,255,128,
  34,0,34,0,68,0,68,0,9,14,28,10,0,0,8,0,
  8,0,59,128,123,0,200,0,200,0,232,0,107,0,11,128,
  9,128,9,128,111,0,238,0,8,0,8,14,14,9,0,0,
  97,179,214,102,12,12,24,24,48,48,102,107,205,134,9,14,
  28,10,0,0,56,0,124,0,108,0,108,0,108,0,56,0,
  56,128,109,128,199,0,194,0,199,0,237,128,124,128,56,0,
  2,5,5,3,0,10,128,192,192,192,64,5,14,14,6,0,
  0,24,48,96,96,192,192,192,192,192,192,96,96,48,24,5,
  14,14,6,0,0,192,96,48,48,24,24,24,24,24,24,56,
  48,96,192,7,7,7,8,0,4,146,214,124,16,124,214,146,
  8,10,10,10,0,1,8,24,24,24,127,254,24,24,24,16,
  4,6,6,5,0,0,112,96,96,64,192,192,8,2,2,9,
  0,5,127,254,3,3,3,4,0,0,224,160,224,8,14,14,
  9,0,0,3,3,6,6,12,12,24,24,48,48,96,96,192,
  192,9,14,28,10,0,0,62,0,127,0,227,128,197,128,197,
  128,197,128,201,128,201,128,209,128,209,128,209,128,227,128,127,
  0,62,0,9,14,28,10,0,0,12,0,28,0,60,0,124,
  0,8,0,4,0,12,0,12,0,8,0,4,0,12,0,12,
  0,127,128,255,128,9,14,28,10,0,0,126,0,255,0,195,
  128,193,128,1,128,3,128,63,0,126,0,224,0,192,0,192,
  0,192,0,223,128,191,0,9,14,28,10,0,0,126,0,255,
  0,195,128,1,128,1,128,3,0,58,0,119,0,3,128,1,
  128,1,128,3,128,255,0,126,0,9,14,28,10,0,0,2,
  0,6,0,14,0,30,0,62,0,118,0,230,0,198,0,251,
  128,247,0,6,0,6,0,6,0,4,0,9,14,28,10,0,
  0,127,128,127,128,96,0,96,0,96,0,110,0,111,0,3,
  128,1,128,1,128,1,128,195,0,255,0,124,0,9,14,28,
  10,0,0,31,0,127,0,96,0,192,0,192,0,192,0,222,
  0,223,0,195,128,193,128,193,128,227,0,127,0,60,0,9,
  14,28,10,0,0,127,128,255,128,0,0,3,0,3,0,6,
  0,6,0,12,0,12,0,24,0,24,0,48,0,48,0,32,
  0,9,14,28,10,0,0,58,0,119,0,227,128,193,128,193,
  128,99,0,54,0,111,0,227,128,193,128,193,128,227,128,119,
  0,46,0,9,14,28,10,0,0,60,0,255,0,231,0,195,
  128,193,128,193,128,225,128,253,128,125,128,1,128,3,128,7,
  0,127,0,252,0,3,11,11,4,0,2,224,160,224,0,0,
  0,0,0,224,160,224,4,13,13,5,0,0,112,80,112,0,
  0,0,0,0,112,80,112,96,192,9,11,22,10,0,1,1,
  128,3,128,15,0,28,0,120,0,224,0,120,0,28,0,15,
  0,3,128,1,128,9,6,12,10,0,4,127,128,255,0,0,
  0,0,0,127,128,255,0,9,11,22,10,0,1,192,0,224,
  0,120,0,60,0,15,0,3,128,15,0,60,0,120,0,224,
  0,192,0,8,14,14,9,0,0,116,238,135,3,3,6,14,
  56,48,48,0,0,48,48,9,11,22,10,0,1,62,0,65,
  0,128,128,154,128,166,128,162,128,162,128,166,128,155,0,64,
  0,63,128,9,14,28,10,0,0,252,0,254,0,199,0,195,
  128,193,128,193,128,193,128,253,128,253,128,193,128,193,128,193,
  128,193,128,129,0,9,14,28,10,0,0,94,0,223,0,195,
  128,193,128,193,128,195,128,255,0,255,0,195,128,193,128,193,
  128,195,128,223,0,190,0,9,14,28,10,0,0,14,0,63,
  0,115,128,97,128,192,0,192,0,192,0,192,0,192,0,192,
  0,96,0,112,0,63,128,15,0,9,14,28,10,0,0,238,
  0,111,0,99,128,97,128,97,128,97,128,97,128,97,128,97,
  128,97,128,97,128,99,128,111,0,238,0,9,14,28,10,0,
  0,95,128,223,0,192,0,192,0,192,0,192,0,223,0,222,
  0,192,0,192,0,192,0,192,0,223,128,191,0,9,14,28,
  10,0,0,95,128,223,0,192,0,192,0,192,0,192,0,223,
  0,222,0,192,0,192,0,192,0,192,0,192,0,128,0,9,
  14,28,10,0,0,63,128,127,128,225,128,192,0,192,0,192,
  0,192,0,207,128,223,128,193,128,193,128,225,128,127,128,62,
  0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,193,
  128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,193,
  128,64,128,8,14,14,10,1,0,254,127,24,24,24,24,24,
  24,24,24,24,24,254,127,9,14,28,10,0,0,31,128,63,
  128,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,
  128,1,128,195,128,255,0,62,0,9,14,28,10,0,0,65,
  128,195,128,199,0,206,0,220,0,216,0,216,0,216,0,216,
  0,220,0,206,0,199,0,195,128,65,128,9,14,28,10,0,
  0,64,0,192,0,192,0,192,0,192,0,192,0,192,0,192,
  0,192,0,192,0,192,0,192,0,255,128,255,0,9,14,28,
  10,0,0,193,128,227,128,247,128,247,128,213,128,193,128,213,
  128,221,128,221,128,201,128,193,128,193,128,193,128,129,0,9,
  14,28,10,0,0,225,0,225,128,241,128,241,128,249,128,217,
  128,221,128,205,128,205,128,197,128,197,128,193,128,193,128,128,
  128,9,14,28,10,0,0,46,0,111,0,227,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,193,128,227,128,123,
  0,58,0,9,14,28,10,0,0,254,0,255,0,195,128,193,
  128,193,128,195,128,223,0,222,0,192,0,192,0,192,0,192,
  0,192,0,128,0,10,15,30,10,0,255,46,0,111,0,227,
  128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,
  128,227,0,123,128,58,192,0,192,9,14,28,10,0,0,126,
  0,255,0,195,128,193,128,193,128,195,128,223,0,220,0,206,
  0,199,0,195,128,193,128,193,128,129,0,9,14,28,10,0,
  0,62,0,127,0,224,0,192,0,192,0,224,0,118,0,27,
  0,3,128,1,128,1,128,3,128,255,128,127,0,9,14,28,
  10,0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,
  0,12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,
  14,28,10,0,0,64,128,193,128,193,128,193,128,193,128,193,
  128,193,128,193,128,193,128,193,128,193,128,99,0,127,0,62,
  0,9,14,28,10,0,0,227,128,99,0,99,0,99,0,34,
  0,54,0,54,0,54,0,20,0,28,0,28,0,28,0,8,
  0,8,0,10,14,28,11,0,0,64,64,192,192,192,192,192,
  192,192,192,192,192,204,192,204,192,204,192,222,192,222,192,211,
  192,193,192,128,192,9,14,28,10,0,0,193,128,193,128,193,
  128,99,0,99,0,50,0,56,0,28,0,14,0,103,0,99,
  0,193,128,193,128,193,128,10,14,28,10,0,0,192,192,192,
  192,97,128,97,128,51,0,63,0,30,0,12,0,8,0,4,
  0,12,0,12,0,12,0,8,0,9,14,28,10,0,0,127,
  128,255,128,1,128,3,128,7,0,6,0,4,0,16,0,48,
  0,112,0,224,0,192,0,255,128,255,0,5,14,14,6,0,
  0,248,192,192,192,192,192,192,192,192,192,192,192,192,248,9,
  14,28,10,0,0,192,0,96,0,96,0,48,0,48,0,24,
  0,24,0,12,0,12,0,6,0,6,0,3,0,3,0,1,
  128,5,14,14,6,0,0,248,24,24,24,24,24,24,24,24,
  24,24,24,24,248,9,6,12,10,0,8,8,0,28,0,54,
  0,99,0,193,128,128,128,10,1,2,10,0,255,255,192,4,
  3,3,5,0,12,224,96,48,8,11,11,9,0,0,124,127,
  3,3,59,123,227,195,199,255,123,9,13,26,10,0,0,64,
  0,192,0,192,0,192,0,192,0,222,0,223,0,195,128,193,
  128,193,128,195,0,255,0,222,0,8,11,11,9,0,0,30,
  63,115,224,192,192,192,224,240,127,30,9,13,26,10,0,0,
  0,128,1,128,1,128,1,128,1,128,61,128,125,128,225,128,
  193,128,193,128,227,128,127,128,61,128,8,11,11,9,0,0,
  60,126,231,195,195,223,222,192,227,127,62,7,13,13,8,0,
  0,62,124,96,96,252,248,96,96,96,96,96,96,32,8,13,
  13,9,0,0,63,127,227,195,195,195,227,123,51,3,3,127,
  254,8,13,13,9,0,0,64,192,192,192,222,223,195,195,195,
  195,195,195,130,2,13,13,3,0,0,64,192,128,64,192,192,
  192,192,192,192,192,192,128,5,14,14,6,0,255,16,24,24,
  8,48,120,24,24,24,24,24,24,120,240,8,13,13,9,0,
  0,64,192,192,198,198,204,216,216,216,204,198,199,131,2,14,
  14,3,0,0,64,192,192,192,192,192,192,192,192,192,192,192,
  192,128,9,11,22,10,0,0,91,0,219,128,201,128,201,128,
  201,128,201,128,201,128,201,128,201,128,193,128,129,0,8,11,
  11,9,0,0,94,223,195,195,195,195,195,195,195,195,130,8,
  11,11,9,0,0,52,118,227,195,195,195,195,195,227,118,52,
  8,11,11,9,0,0,252,254,199,195,199,222,220,192,192,192,
  128,9,13,26,9,0,255,63,0,127,0,227,0,195,0,195,
  0,195,0,251,0,123,0,3,0,3,0,3,128,3,128,3,
  128,7,11,11,8,0,0,92,222,224,224,192,192,192,192,192,
  192,128,8,11,11,9,0,0,62,127,192,192,240,102,15,3,
  3,254,124,6,13,13,7,0,0,32,96,96,252,248,96,96,
  96,96,96,96,124,60,8,11,11,9,0,0,65,195,195,195,
  195,195,195,195,227,123,58,8,11,11,9,0,0,129,129,195,
  195,102,102,102,36,60,24,24,9,11,22,10,0,0,128,128,
  193,128,201,128,201,128,201,128,201,128,193,128,221,128,247,128,
  227,128,65,0,8,11,11,9,0,0,195,102,102,52,24,24,
  24,52,102,102,195,8,12,12,9,0,255,193,227,99,102,110,
  44,12,24,24,48,240,224,8,11,11,9,0,0,127,255,7,
  6,12,0,48,96,224,255,254,7,14,14,8,0,0,14,28,
  24,24,24,48,224,224,48,24,24,24,28,14,2,16,16,5,
  1,255,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
  192,192,8,14,14,9,0,0,224,112,24,24,24,12,7,7,
  12,24,24,24,112,224,10,5,10,11,0,4,48,192,120,192,
  204,192,199,128,195,0,5,13,13,6,0,1,248,136,136,136,
  136,136,136,136,136,136,136,136,248,8,11,11,9,0,0,252,
  254,199,195,199,222,220,192,192,192,128,8,11,11,9,0,0,
  30,63,115,224,192,192,192,224,240,127,30,8,11,11,9,0,
  0,127,254,24,24,24,24,24,24,24,24,16,8,12,12,9,
  0,255,193,227,99,102,110,44,12,24,24,48,240,224,8,12,
  12,9,0,255,126,255,219,219,219,219,90,24,24,24,24,16,
  8,11,11,9,0,0,195,102,102,52,24,24,24,52,102,102,
  195,8,12,12,9,0,255,132,198,198,198,198,198,198,198,198,
  254,255,3,8,11,11,9,0,0,65,195,195,195,231,127,63,
  3,3,3,2,8,11,11,9,0,0,130,195,195,211,219,219,
  219,219,219,203,255,8,12,12,9,0,255,130,195,195,211,219,
  219,219,219,218,200,255,3,8,11,11,9,0,0,192,224,96,
  96,108,110,103,99,103,126,124,8,11,11,9,0,0,130,195,
  195,195,219,221,207,199,207,253,251,8,11,11,9,0,0,64,
  192,192,192,220,222,199,195,199,254,252,8,11,11,9,0,0,
  124,254,198,3,27,59,3,3,6,254,120,9,11,22,10,0,
  0,71,0,207,128,205,128,205,128,221,128,221,128,205,128,205,
  128,205,128,207,128,135,0,8,11,11,9,0,0,63,127,227,
  195,227,123,59,51,51,115,226,9,14,28,10,0,0,252,0,
  254,0,199,0,195,128,193,128,193,128,193,128,253,128,253,128,
  193,128,193,128,193,128,193,128,129,0,9,14,28,10,0,0,
  223,128,223,0,192,0,192,0,192,0,192,0,222,0,223,0,
  195,128,193,128,193,128,195,128,255,0,254,0,9,14,28,10,
  0,0,94,0,223,0,195,128,193,128,193,128,195,128,255,0,
  255,0,195,128,193,128,193,128,195,128,223,0,190,0,9,14,
  28,10,0,0,223,0,223,128,192,0,192,0,192,0,192,0,
  192,0,192,0,192,0,192,0,192,0,192,0,192,0,128,0,
  9,14,28,10,0,0,11,0,27,0,59,0,115,0,99,0,
  99,0,99,0,99,0,99,0,99,0,123,0,251,128,193,128,
  193,128,9,14,28,10,0,0,95,128,223,0,192,0,192,0,
  192,0,192,0,223,0,222,0,192,0,192,0,192,0,192,0,
  223,128,191,0,10,14,28,11,0,0,64,64,192,192,196,192,
  204,192,204,192,109,128,109,128,109,128,109,128,204,192,204,192,
  204,192,200,192,128,128,9,14,28,10,0,0,122,0,251,0,
  131,128,1,128,1,128,3,0,58,0,123,0,3,128,1,128,
  1,128,131,128,251,0,120,0,9,14,28,10,0,0,67,128,
  195,128,199,128,199,128,199,128,205,128,205,128,205,128,217,128,
  217,128,217,128,209,128,209,128,193,0,9,14,28,10,0,0,
  91,128,219,128,215,128,199,128,199,128,205,128,205,128,205,128,
  217,128,217,128,217,128,209,128,209,128,193,0,9,14,28,10,
  0,0,65,128,195,128,199,0,206,0,220,0,216,0,216,0,
  216,0,216,0,220,0,206,0,199,0,195,128,65,128,9,14,
  28,10,0,0,220,0,222,0,199,0,195,128,193,128,193,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  9,14,28,10,0,0,193,128,227,128,247,128,247,128,213,128,
  193,128,213,128,221,128,221,128,201,128,193,128,193,128,193,128,
  129,0,9,14,28,10,0,0,129,0,193,128,193,128,193,128,
  193,128,193,128,223,128,223,128,193,128,193,128,193,128,193,128,
  193,128,64,128,9,14,28,10,0,0,46,0,111,0,227,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  227,128,123,0,58,0,9,14,28,10,0,0,223,128,223,128,
  193,128,193,128,193,128,193,128,193,128,193,128,193,128,193,128,
  193,128,193,128,193,128,129,0,9,14,28,10,0,0,254,0,
  255,0,195,128,193,128,193,128,195,128,223,0,222,0,192,0,
  192,0,192,0,192,0,192,0,128,0,9,14,28,10,0,0,
  14,0,63,0,115,128,97,128,192,0,192,0,192,0,192,0,
  192,0,192,0,96,0,112,0,63,128,15,0,9,14,28,10,
  0,0,255,0,127,128,0,0,12,0,12,0,12,0,12,0,
  12,0,12,0,12,0,12,0,12,0,12,0,4,0,9,14,
  28,10,0,0,129,0,193,128,193,128,193,128,193,128,125,128,
  61,128,1,128,1,128,1,128,193,128,225,128,127,0,62,0,
  10,14,28,11,0,0,63,0,127,128,237,192,204,192,204,192,
  237,192,109,128,45,0,12,0,12,0,12,0,12,0,12,0,
  4,0,9,14,28,10,0,0,193,128,193,128,193,128,99,0,
  99,0,50,0,56,0,28,0,14,0,103,0,99,0,193,128,
  193,128,193,128,10,15,30,10,0,255,130,0,195,0,195,0,
  195,0,195,0,195,0,195,0,195,0,195,0,195,0,195,0,
  195,0,223,0,223,128,1,192,9,14,28,10,0,0,129,0,
  193,128,193,128,193,128,193,128,193,128,225,128,125,128,61,128,
  1,128,1,128,1,128,1,128,0,128,10,14,28,11,0,0,
  128,128,192,192,192,192,192,192,200,192,204,192,204,192,204,192,
  204,192,204,192,196,192,192,64,223,128,95,192,11,15,30,11,
  0,255,128,128,192,192,192,192,192,192,200,192,204,192,204,192,
  204,192,204,192,204,192,196,192,192,64,223,128,95,192,0,224,
  9,14,28,10,0,0,224,0,224,0,96,0,96,0,96,0,
  96,0,110,0,111,0,99,128,97,128,97,128,99,128,127,0,
  62,0,10,14,28,11,0,0,128,128,192,192,192,192,192,192,
  192,192,192,192,220,192,222,192,199,64,195,64,195,64,199,64,
  254,192,124,192,9,14,28,10,0,0,128,0,192,0,192,0,
  192,0,192,0,192,0,222,0,223,0,195,128,193,128,193,128,
  195,128,255,0,254,0,9,14,28,10,0,0,62,0,127,0,
  227,128,193,128,193,128,1,128,29,128,29,128,1,128,1,128,
  193,128,227,128,127,0,62,0,10,14,28,11,0,0,71,0,
  207,128,221,192,216,192,216,192,216,192,248,192,248,192,216,192,
  216,192,216,192,221,192,207,128,135,0,9,14,28,10,0,0,
  63,128,127,128,225,128,193,128,193,128,225,128,125,128,61,128,
  29,128,57,128,113,128,225,128,193,128,129,0,8,11,11,9,
  0,0,124,127,3,3,59,123,227,195,199,255,123,8,11,11,
  9,0,0,7,31,56,112,102,207,195,195,231,126,60,8,11,
  11,9,0,0,92,222,198,198,220,222,195,195,199,222,188,8,
  11,11,9,0,0,254,255,192,192,192,192,192,192,192,192,128,
  10,11,22,11,0,0,31,128,31,128,25,128,49,128,49,128,
  49,128,1,128,127,192,255,192,192,192,192,192,8,11,11,9,
  0,0,60,126,231,195,195,223,222,192,227,127,62,9,11,22,
  10,0,0,64,128,201,128,201,128,107,0,54,0,54,0,107,
  0,201,128,201,128,201,128,129,0,8,11,11,9,0,0,116,
  246,195,7,126,62,6,3,7,254,124,8,11,11,9,0,0,
  65,195,195,199,207,223,219,211,195,195,130,8,11,11,9,0,
  0,89,219,211,199,207,223,219,211,195,195,130,8,11,11,9,
  0,0,71,207,204,220,216,216,216,220,206,199,67,8,11,11,
  9,0,0,27,59,115,227,195,195,195,195,195,195,195,9,11,
  22,10,0,0,65,0,227,128,247,128,247,128,213,128,213,128,
  213,128,213,128,193,128,193,128,129,0,8,11,11,9,0,0,
  65,195,195,251,251,195,195,195,195,195,130,8,11,11,9,0,
  0,52,118,227,195,195,195,195,195,227,118,52,8,11,11,9,
  0,0,95,223,195,195,195,195,195,195,195,195,130,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
  255,255,255,255,255,255,255,255,255,255,255,255,255};
 
  подключаю Arduino nano нажимаю загузить - стрелочку и выдет
 
Arduino: 1.8.1 (Windows 7), Плата:"Arduino Nano, ATmega328"
 
C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi\DDS_sweeper1_TFT_ST7735_128x160_v4_hwspi.ino:18:20: fatal error: Ucglib.h: No such file or directory
 
 #include "Ucglib.h"
 
                    ^
 
compilation terminated.
 
exit status 1
Ошибка компиляции для платы Arduino Nano.
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt: C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160: C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\LCD_ID_Reader: C:\Program Files (x86)\Arduino\libraries\LCD_ID_Reader
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\OLED_RUS: C:\Program Files (x86)\Arduino\libraries\OLED_RUS
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\simple_dds_st7735_2: C:\Program Files (x86)\Arduino\libraries\simple_dds_st7735_2
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master: C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield: C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT_Ucglib: C:\Program Files (x86)\Arduino\libraries\TFT_Ucglib
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TSCalibration: C:\Program Files (x86)\Arduino\libraries\TSCalibration
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\ucglib-master: C:\Program Files (x86)\Arduino\libraries\ucglib-master
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\utf8rus3: C:\Program Files (x86)\Arduino\libraries\utf8rus3
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\UTFT: C:\Program Files (x86)\Arduino\libraries\UTFT
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt: C:\Program Files (x86)\Arduino\libraries\ad9850adafuilt
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160: C:\Program Files (x86)\Arduino\libraries\DDS_sweeper1_TFT_ST7735_128x160
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\LCD_ID_Reader: C:\Program Files (x86)\Arduino\libraries\LCD_ID_Reader
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\OLED_RUS: C:\Program Files (x86)\Arduino\libraries\OLED_RUS
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\simple_dds_st7735_2: C:\Program Files (x86)\Arduino\libraries\simple_dds_st7735_2
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master: C:\Program Files (x86)\Arduino\libraries\TFT-Shield-Example-Code-master
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield: C:\Program Files (x86)\Arduino\libraries\TFT_Touch_Shield
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TFT_Ucglib: C:\Program Files (x86)\Arduino\libraries\TFT_Ucglib
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\TSCalibration: C:\Program Files (x86)\Arduino\libraries\TSCalibration
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\ucglib-master: C:\Program Files (x86)\Arduino\libraries\ucglib-master
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\utf8rus3: C:\Program Files (x86)\Arduino\libraries\utf8rus3
Неверная библиотека найдена в C:\Program Files (x86)\Arduino\libraries\UTFT: C:\Program Files (x86)\Arduino\libraries\UTFT
 
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
 

 

T.Rook
Offline
Зарегистрирован: 05.03.2016

DAFdriver, да поправьте уже #include "Ucglib.h" на #include <Ucglib.h> !!!!! Вам же уже несколько раз советовали. Или обеспечьте наличие Ucglib.h Ucglib.cpp в папке Вашего скетча.

И наконец-то научитесь правильно вставлять код в сообщение на форуме. Прочтите "Вставка программного кода в комментарий" (одна из приклееных тем вверху)