How to link an arduino code library to a visual studio project

by Visual Micro 11. April 2010 19:56

Add an arduino Library using the project menu

 
The 2nd entry on the Project menu allows libraries to be added
 
When adding libraries the #includes are automatically added to the master .pde source.
You must click "Save" before the intellisense will detect the new libraries.
 
Optionally toggle the library sources in/out of the visual studio project using "Project>Show all Arduino files".
Including the actual library sources codes does not break the compiler but allows the libraries to be explored using the Visual Studio object browser

Tips & Bits

Connect two or more arduinos and spy on the serial communication using visual studio and "Serial Echo"

Coming soon! Android and Processing for Visual Studio

How to prevent or remove Visual Studio pch folders

How to configure visual studio color coding for arduino source code

See more Examples

We can use different arduino engines to power our visual studio addin. However, please use the arduino 0022 engine until we have an arduino 1.0 solution.

The new version of Arduino for Visual Studio includes initial suport for the new arduino .ino file extension. You can not yet compile for arduino 1.0 but you can compile sketches containg a mix of .pde and .ino sketches.

Multiple sketch projects and windows projects can co-exist in a single solution. Fully integrated. F5 Compile and upload (startup project). Build Project, Build Solution