thunderbug1 / Spherebot-Host-GUI

Qt based GUI to control the spherebot
54 stars 60 forks source link

Error compiling firmware when softwareServo installed #3

Closed connerk closed 10 years ago

connerk commented 10 years ago

I can compile and load the firmware when the softwareServo library is not installed in ArduinoIDE but when it is installed I get the following:

\Arduino\libraries\SoftwareServo\SoftwareServo.cpp: In member function 'uint8_t SoftwareServo::attach(int)': \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:27: error: 'digitalWrite' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:28: error: 'OUTPUT' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:28: error: 'pinMode' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp: In member function 'void SoftwareServo::write(int)': \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:51: error: 'clockCyclesPerMicrosecond' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp: In static member function 'static void SoftwareServo::refresh()': \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:73: error: 'millis' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:106: error: 'digitalWrite' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:108: error: 'TCNT0' was not declared in this scope \Arduino\libraries\SoftwareServo\SoftwareServo.cpp:123: error: 'digitalWrite' was not declared in this scope

Must softwareServo be installed as the readme defines?
When compiling without the library installed is it simply skipping these needed methods?

Thanks! Kevin

connerk commented 10 years ago

I realized after this post that these libraries are included in the folder "\ShpereBot Arduino\Spherebot" natively.

Having them also installed to the IDE as a library caused some conflict. uninstalling both libraries led to success.

I'll work on modifying the README to identify this and submit a pull request if you like.

Thanks!

thunderbug1 commented 10 years ago

I´ve deleted the additional zip files from the repository