Не работает библиотека NewSoftSerial
- Войдите на сайт для отправки комментариев
Втр, 25/02/2014 - 23:38
Добрый день!
Работаю с easyvr шилдом, для него необходима библиотека NewSoftSerial. Я написал код, но он не компилируется. Ссылается на ошибку с библиотекой. Дело в том, что даже примеры из этой библиотеки не компилируются. Пробывал разные версии IDE.
Ошибки ниже.
C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:43:24: error: WConstants.h: No such file or directory In file included from C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:45: C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\/NewSoftSerial.h:33:2: error: #error NewSoftSerial has been moved into the Arduino core as of version 1.0. Use SoftwareSerial instead. In file included from C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:45: C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\/NewSoftSerial.h:99: error: conflicting return type specified for 'virtual void NewSoftSerial::write(uint8_t)' C:\Users\user\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)' C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp: In member function 'void NewSoftSerial::tx_pin_write(uint8_t)': C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:279: error: 'LOW' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp: In member function 'void NewSoftSerial::setTX(uint8_t)': C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:356: error: 'OUTPUT' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:356: error: 'pinMode' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:357: error: 'HIGH' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:357: error: 'digitalWrite' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:358: error: 'digitalPinToBitMask' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:359: error: 'digitalPinToPort' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:360: error: 'portOutputRegister' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp: In member function 'void NewSoftSerial::setRX(uint8_t)': C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:365: error: 'INPUT' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:365: error: 'pinMode' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:367: error: 'HIGH' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:367: error: 'digitalWrite' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:369: error: 'digitalPinToBitMask' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:370: error: 'digitalPinToPort' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:371: error: 'portInputRegister' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp: In member function 'virtual void NewSoftSerial::write(uint8_t)': C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:454: error: 'HIGH' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:454: error: 'LOW' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:460: error: 'byte' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:460: error: expected `;' before 'mask' C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:460: error: 'mask' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:474: error: 'byte' was not declared in this scope C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:474: error: expected `;' before 'mask' C:\Users\user\Desktop\arduino-1.0.5-r2\libraries\NewSoftSerial\NewSoftSerial.cpp:474: error: 'mask' was not declared in this scope
В своем листинге ошибок посмотрите на ошибку под №3.