Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to port an Arduino IDE project to Atmel Studio (I have Arduino IDE 1.6.8 and Atmel Studio 7). I've used the Atmel Studio wizard for importing an Arduino Sketch, which has imported my project successfully and set up a project for the ArduinoCore library, but I now have two problems:

  • My code contains #include <Wire.h>, but the compiler is complaining it cannot find it, and
  • I'm using a third-party library (fmalpartida's I2C LCD display module library), and it isn't 100% clear how to import it into the project structure.

How do I go about setting up the environment to make both of these work?

Atmel's web site suggests this should be automatic ("Your sketch, including any libraries it references, will be imported into Studio 7 as a C++ project") -- why would this have failed to happen for mine?

share|improve this question

migrated from electronics.stackexchange.com Apr 20 at 15:10

This question came from our site for electronics and electrical engineering professionals, students, and enthusiasts.

    
Could the downvoter please comment on why this has been downvoted? – Jules Apr 20 at 14:32
    
Wasn't me but couldn't you just download the libraries and add to your project, not sure where the code is for the second but Wire looks like it's here: github.com/esp8266/Arduino/tree/master/libraries/Wire – PeterJ Apr 20 at 14:35
    
As I understand it from reading the description on Atmel's web site, Wire being part of the Arduino system library it should be included automatically. I'm not sure why it is not already, but I'm guessing there's an option to automatically add it to the project that I've missed. – Jules Apr 20 at 14:37
    
As for the other library, yes I could just add its code to my own project, but I presume Atmel Studio has better ways of handling this -- I just don't know what they are. With Arduino IDE I can just point the IDE at the .zip file containing the source, and it handles it automatically. Is there a similar mechanism in Studio? – Jules Apr 20 at 14:38
    
Not sure, I've noticed Atmel Studio had some Arduino support added fairly recently but never used it personally. – PeterJ Apr 20 at 14:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.