-
-
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
Problem with libraries #35
Comments
Or if I install OneWire lib and only include it to empty project I get this. CODE : void loop(void) } Error: ystrem@ystrem-PC:~/test$ platformio run |
Hello, Which is extension of your file?
#include <Arduino.h>
|
It help to change from main.c > main.cpp or main.ino. Now is working. Is possible to upload code by usbasp ? If I set proper env upload_port ? |
Thanks for reporting 👍
I hope, that you can upload it. Can you test it and report me? Thanks a lot! |
It's not possible. |
Stop stop... Why not?
Try: [env:some_env]
platform = atmelavr
framework = arduino
upload_protocol = usbasp |
I tried it and it looks good.
|
@ystrem thanks a lot for your Have a nice weekend! 👍 |
Hello, I have problem with libraries. I can't get work the Serial work. The same I get when I try another library.
Code :
include <Arduino.h>
void setup(void)
{
// start serial port
Serial.begin(9600);
}
void loop(void)
{
}
pioenvs/arduino_pro5v/src/main.c: In function 'setup':
.pioenvs/arduino_pro5v/src/main.c:6:3: error: 'Serial' undeclared (first use in this function)
Serial.begin(9600);
^
.pioenvs/arduino_pro5v/src/main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
scons: *** [.pioenvs/arduino_pro5v/src/main.o] Error 1
The text was updated successfully, but these errors were encountered: