Не компилируются коды библиотеки AF_Motor
- Войдите на сайт для отправки комментариев
Пт, 17/01/2014 - 15:05
Купил плату MSS Shield
Скачал библиотеку аф мотор, с сайта разработчика платы.
При попытке скомпилировать любой код этой библиотеки пишет что-то подобное:
C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:7:22: error: WProgram.h: No such file or directory C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In member function 'void AFMotorController::enable()': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:29: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:29: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:39: error: 'LOW' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:39: error: 'digitalWrite' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In member function 'void AFMotorController::latch_tx()': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:47: error: 'LOW' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:47: error: 'digitalWrite' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:58: error: 'HIGH' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:64: error: 'HIGH' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:67: error: 'HIGH' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In function 'void initPWM1(uint8_t)': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:94: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:94: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In function 'void initPWM2(uint8_t)': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:132: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:132: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In function 'void initPWM3(uint8_t)': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:170: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:170: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In function 'void initPWM4(uint8_t)': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:210: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:210: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In constructor 'AF_Stepper::AF_Stepper(uint16_t, uint8_t)': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:323: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:323: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:325: error: 'HIGH' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:325: error: 'digitalWrite' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:340: error: 'OUTPUT' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:340: error: 'pinMode' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:342: error: 'HIGH' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:342: error: 'digitalWrite' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In member function 'void AF_Stepper::step(uint16_t, uint8_t, uint8_t)': C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:388: error: 'delay' was not declared in this scope C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:398: error: 'delay' was not declared in this scope
Помогите пожалуйста что с этим делать ???
Изъеженная тема , в коде библиотеки необходимо заменить WProgram.h на Arduino.h
Большое спасибо, я нуб так что изьезженых тем ещё не видел