НЕт не будет , для этого нужно плагин переписывать
НЕт не будет , для этого нужно плагин переписывать
у меня что-то не получается залить скетч, начинает ругатся на этой строке:
IRrecv irrecv(RECV_PIN);
а внизу пишет:
"iRrecv" does not name a type
Последний раз редактировалось svon; 07.03.2011 в 22:22.
дай пожалуйста ссылку на библиотеку
я не нашел
IRrecv irrecv(RECV_PIN);
а внизу пишет:
"iRrecv" does not name a type
Так в шапке написано что нужно скачать и установить библиотеку
Скачайте библиотеку из этой темы http://www.compcar.ru/forum/showthread.php?t=4959
Chip подскажи плиз пол форума обшарил ненашел, у меня при выходе из кибернейта вроде и ардунька в системе присутсвует и программка allinone запушена и не ругается, а своей функции не выполняет, приходятся вручную выгружать прогу и заново запускать, вот тогда тип-топ! зарание Спасибо!
Что то не получается у меня использовать данную библиотеку, компилятор arduino-1.0.4
Выдает кучу ошибок после компиляции
C:\arduino-1.0.4\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=104 -IC:\arduino-1.0.4\hardware\arduino\cores\arduino -IC:\arduino-1.0.4\hardware\arduino\variants\eightanaloginputs -IC:\arduino-1.0.4\libraries\IRremote C:\Users\Maikl\AppData\Local\Temp\build82993979537 73187129.tmp\All_in_one.cpp -o C:\Users\Maikl\AppData\Local\Temp\build82993979537 73187129.tmp\All_in_one.cpp.o
All_in_one.ino: In function 'void joystik()':
All_in_one.ino:101: warning: comparison between signed and unsigned integer expressions
C:\arduino-1.0.4\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=104 -IC:\arduino-1.0.4\hardware\arduino\cores\arduino -IC:\arduino-1.0.4\hardware\arduino\variants\eightanaloginputs -IC:\arduino-1.0.4\libraries\IRremote -IC:\arduino-1.0.4\libraries\IRremote\utility C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp -o C:\Users\Maikl\AppData\Local\Temp\build82993979537 73187129.tmp\IRremote\IRremote.cpp.o
In file included from C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:14:
C:\arduino-1.0.4\libraries\IRremote\/IRremoteInt.h:15:22: warning: WProgram.h: No such file or directory
In file included from C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:14:
C:\arduino-1.0.4\libraries\IRremote\/IRremoteInt.h:113: error: 'uint8_t' does not name a type
C:\arduino-1.0.4\libraries\IRremote\/IRremoteInt.h:114: error: 'uint8_t' does not name a type
C:\arduino-1.0.4\libraries\IRremote\/IRremoteInt.h:115: error: 'uint8_t' does not name a type
C:\arduino-1.0.4\libraries\IRremote\/IRremoteInt.h:118: error: 'uint8_t' does not name a type
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:259: error: 'delayMicroseconds' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:268: error: 'delayMicroseconds' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:288: error: 'OUTPUT' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:288: error: 'pinMode' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:289: error: 'LOW' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:289: error: 'digitalWrite' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In constructor 'IRrecv::IRrecv(int)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:306: error: 'volatile struct irparams_t' has no member named 'recvpin'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:307: error: 'volatile struct irparams_t' has no member named 'blinkflag'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:331: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:332: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:336: error: 'volatile struct irparams_t' has no member named 'recvpin'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:336: error: 'INPUT' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:336: error: 'pinMode' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::blink13(int)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:343: error: 'volatile struct irparams_t' has no member named 'blinkflag'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:345: error: 'OUTPUT' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:345: error: 'pinMode' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In function 'void __vector_9()':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:359: error: 'volatile struct irparams_t' has no member named 'recvpin'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:359: error: 'digitalRead' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:362: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:364: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:366: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:375: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:376: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:378: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:384: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:386: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:391: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:393: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:401: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:412: error: 'volatile struct irparams_t' has no member named 'blinkflag'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:414: error: 'B00100000' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:417: error: 'B11011111' was not declared in this scope
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::resume()':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:423: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:424: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'int IRrecv::decode(decode_results*)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:434: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:435: error: 'volatile struct irparams_t' has no member named 'rcvstate'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeJVC(decode_results*)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:507: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:509: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:509: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:520: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeSAMSUNG(decode_results*)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:566: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeNEC(decode_results*)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:663: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:671: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeSony(decode_results*)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:705: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:715: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeRC5(decode_results*)':
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:794: error: 'volatile struct irparams_t' has no member named 'rawlen'
C:\arduino-1.0.4\libraries\IRremote\IRremote.cpp:805: error: 'volatile struct irparams_t' has no member named 'rawlen'
Попробовал использовать версию компилятора 017 ошибок меньше, но результат опять не радует использую ардуино нано V3.0 пока голую т.е. только usb хвост воткнут...
java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the
preferences file points to a subdirectory of
D:\Maikl\Auto\Carduino\arduino-0017\arduino-0017\hardware\cores
at processing.app.debug.Target.<init>(Target.java:49)
at processing.app.Editor$43.run(Editor.java:1751)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
ну не силен я в программировании.
Кто в теме подскажите плиз куда копать...
Проверю, отпишусь
Последний раз редактировалось Chip; 13.03.2011 в 20:50.
А какой энкодер используется ?
Спасибо
Обитаю здесь http://www.infauto.ru
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)