Arduino libraries are wonderful things for developers. They are very developer friendly.
Arduino libraries are basically a wrapper on top of C/C++, so technically, I think it is possible to combine set up Atmel Studio project to use Arduino libraries. Has anyone or any links on internet that gives instructions on how to do this for the Arduino Due?
Download a copy of the free VisualMicro plug-in for Atmel Studio from visualmicro.com, and you can build pure Arduino projects painlessly.
Regards,
Ray L.
RayLivingston:
Download a copy of the free VisualMicro plug-in for Atmel Studio from visualmicro.com, and you can build pure Arduino projects painlessly.
Regards,
Ray L.
Does it work even for Arduino Due? Are the files still in .ino? I would prefer to use C++ files because .ino file get huge and hard to manage when the code size grows.
You can use .ino files or .cpp files, or a mix of the two. And it works fine on a Due - I've got one Due project that is approaching 200K of object code, and uses many Arduino libraries (LCD, Ethernet, PID, etc.).
Regards,
Ray L.
RayLivingston:
You can use .ino files or .cpp files, or a mix of the two. And it works fine on a Due - I've got one Due project that is approaching 200K of object code, and uses many Arduino libraries (LCD, Ethernet, PID, etc.).
Regards,
Ray L.
Thanks for the wonderful news. You deserve 1 karma!
Do you mean I can totally replace .ino with cpp files? For libraries, the code is in .cpp and .h. But for the main file, can I also use cpp files? This has been what I have been doing in Atmel Studio using Arduino libraries in the background.
Here is everything you need to know:
Regards,
Ray L.