![]() |
подскажите почему при компиляции скетча вот такая ошибка
Arduino: 1.6.8 (Windows XP), Плата:"Arduino Leonardo" In file included from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\U SBAPI.h:38:0, from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\C DC.cpp:19: C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\C DC.cpp:54:71: error: 'USB_EP_SIZE' was not declared in this scope D_ENDPOINT(USB_ENDPOINT_OUT(CDC_ENDPOINT_OUT),USB_ ENDPOINT_TYPE_BULK,USB_EP_SIZE,0), ^ C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\U SBCore.h:272:22: note: in definition of macro 'D_ENDPOINT' { 7, 5, _addr,_attr,_packetSize, _interval } ^ C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\C DC.cpp:55:71: error: 'USB_EP_SIZE' was not declared in this scope D_ENDPOINT(USB_ENDPOINT_IN (CDC_ENDPOINT_IN ),USB_ENDPOINT_TYPE_BULK,USB_EP_SIZE,0) ^ C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\U SBCore.h:272:22: note: in definition of macro 'D_ENDPOINT' { 7, 5, _addr,_attr,_packetSize, _interval } ^ C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\C DC.cpp:64:16: error: 'bool CDC_Setup' redeclared as different kind of symbol bool CDC_Setup(USBSetup& setup) ^ In file included from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\C DC.cpp:19:0: C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\U SBAPI.h:276:6: error: previous declaration of 'bool CDC_Setup(Setup&)' bool CDC_Setup(Setup& setup); ^ C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\C DC.cpp:64:16: error: 'USBSetup' was not declared in this scope bool CDC_Setup(USBSetup& setup) ^ exit status 1 Ошибка компиляции для платы Arduino Leonardo. Этот отчёт будет иметь больше информации с включенной опцией Файл -> Настройки -> "Показать подробный вывод во время компиляции" вот собственно сам скетч int rknop; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(rknop,INPUT); } void loop() { // put your main code here, to run repeatedly: rknop=analogRead(A0); //Serial.println(rknop); if(rknop < 170 && rknop > 149) { Remote.increase(); delay(200); Remote.clear(); } if(rknop < 140 && rknop > 100) { Remote.decrease(); delay(200); Remote.clear(); } //delay(500); } |
seawey, версия Arduino IDE должна быть 1.0.5 или 1.6.5
http://pccar.ru/showthread.php?p=319975#post319975 |
мне кажется тебе лучше обратиться на форум по ардуино
|
Часовой пояс GMT +4, время: 09:42. |
Работает на vBulletin® версия 3.8.4.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot