Skip to content
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 with #include <SD.h> gives error because Energia.h is needed #136

Closed
Ekran opened this issue Mar 24, 2015 · 2 comments
Closed

Arduino with #include <SD.h> gives error because Energia.h is needed #136

Ekran opened this issue Mar 24, 2015 · 2 comments
Assignees
Milestone

Comments

@Ekran
Copy link

Ekran commented Mar 24, 2015

I use the simple blink example on an nano and add the line #include <SD.h>. The compiler gives the error:

.pioenvs\autogen_nanoatmega328\SD_ID79\utility\Sd2Card.cpp:21:21: fatal error: Energia.h: No such file or directory

Shouldn't it use something like arduino.h?

@ivankravets
Copy link
Member

This library doesn't support framework arduino. In other words, this is a port of this library https://github.com/adafruit/SD

I will add support for valid Arduino SD library as soon as possible.


Current solution: just create in src dir file named Energia.h with the next contents:

#include <Arduino.h>

@ivankravets
Copy link
Member

I've just added new library which is compatible with Arduino framework. Please use it http://platformio.org/#!/lib/show/161/SD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants