-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino internal libraries not working #550
Comments
What do you see in |
All the libraries seems to be there and I checked some of the libraries and there are identical to the ones that Arduino supplies with their IDE |
Try to remove |
So, basically reinstalling the toolchain right? In that case, it did not work. If you want to know, I have tried to link the created object file inside the library from the .pioenvs (inside of the project dir) to example code but gcc didn't complain about linking errors. Maybe there goes something wrong with linking to Arduino.h ? |
|
I have removed/reinstalled it, making sure that every file has deleted(including 'hidden directories'). After that, I tried the following: create this project with megaatmega2560 as a board. When I run $platformio run , it will only give an error to the map function of Arduino. All other functions that does not use map, are compiling and working on the target board with servo. What is even more surprising (to me) is that if I add the following line at the end of the loop() functions: map(0, 0, 1023, 0, 255); |
Hi @alangerak |
You mean the terminal output of platformio run? build log |
@alangerak Please provide terminal output from |
Thanks, the problem is localized. |
Thanks a lot! Please try the latest http://docs.platformio.org/en/latest/installation.html#development-version |
Recently, I upgraded from 2.6.1 to 2.8.4 and the internal libraries from Arduino are not working anymore. It doesn't recognise the default Arduino functions (digitalWrite etc.) but the arduino header(Arduino.h) is included.
I have run the tests using tox and the results are found here. (I had to use an exernal file, output is too large to show here)
I have tested this both Ubuntu 14.04 and Windows 8.1 but I had the same issue.
Is there a workaround for this problem other than replacing the internal libraries for external ones?
The text was updated successfully, but these errors were encountered: