Проблема с UTFT и UTouch

Нет ответов
duss1981
Offline
Зарегистрирован: 03.10.2013
Имеется мега 2560 и дисплей 3.2TFT LCD. 
Подключаю библиотку  UTFT.  Загружаю примеры UTouch_ButtonTest, UTouch_Calibration, UTouch_QuickDraw, UTouch_QuickPaint.
При загрузке примера  UTouch_Calibration при компиляции просто зависает на 33%.
UTouch_QuickDraw, UTouch_QuickPaint загружается и работает. 
При загрузки UTouch_ButtonTest  получаю ошибки, см ниже. 
Инициализация во всех файлах одинаковая  UTFT    myGLCD(ITDB32S,38,39,40,41); и  UTouch  myTouch( 6, 5, 4, 3, 2);. А компилирует по разному, в чем может быть проблема (вчера UTouch_ButtonTest,  загружал все работало. Перезагрузка компа не помогает) ?
 
 
"Изменена опция сборки, пересобираем все UTouch_ButtonTest:28: error: redefinition of 'UTFT myGLCD'
UTouch_ButtonTest:24: error: 'UTFT myGLCD' previously declared here
UTouch_ButtonTest:40: error: redefinition of 'UTouch myTouch'
UTouch_ButtonTest:25: error: 'UTouch myTouch' previously declared here
UTouch_ButtonTest:45: error: redefinition of 'int x'
UTouch_ButtonTest:27: error: 'int x' previously declared here
UTouch_ButtonTest:45: error: redefinition of 'int y'
UTouch_ButtonTest:27: error: 'int y' previously declared here
UTouch_ButtonTest:46: error: redefinition of 'char stCurrent [20]'
UTouch_ButtonTest:28: error: 'char stCurrent [20]' previously defined here
UTouch_ButtonTest:47: error: redefinition of 'int stCurrentLen'
UTouch_ButtonTest:29: error: 'int stCurrentLen' previously defined here
UTouch_ButtonTest:48: error: redefinition of 'char stLast [20]'
UTouch_ButtonTest:30: error: 'char stLast [20]' previously defined here
UTouch_ButtonTest.ino: In function 'void drawButtons()':
UTouch_ButtonTest:54: error: redefinition of 'void drawButtons()'
UTouch_ButtonTest:36: error: 'void drawButtons()' previously defined here
UTouch_ButtonTest.ino: In function 'void updateStr(int)':
UTouch_ButtonTest:90: error: redefinition of 'void updateStr(int)'
UTouch_ButtonTest:72: error: 'void updateStr(int)' previously defined here
UTouch_ButtonTest.ino: In function 'void waitForIt(int, int, int, int)':
UTouch_ButtonTest:115: error: redefinition of 'void waitForIt(int, int, int, int)'
UTouch_ButtonTest:97: error: 'void waitForIt(int, int, int, int)' previously defined here
UTouch_ButtonTest.ino: In function 'void setup()':
UTouch_ButtonTest:129: error: redefinition of 'void setup()'
UTouch_ButtonTest:111: error: 'void setup()' previously defined here
UTouch_ButtonTest.ino: In function 'void loop()':
UTouch_ButtonTest:143: error: redefinition of 'void loop()'
UTouch_ButtonTest:125: error: 'void loop()' previously defined here
redefinition of 'UTFT myGLCD'"