In this post I will explain how to setup, Visual Studio 2015 Community Edition and Visual Micro, the plug-in that allows users to code INO files like a professional. The Visual Micro plugin allows for greater control over your sketches. This is from the main page, "IDE features such as:- see/edit library sources, jump to code definition, jump to compiler error, class explorer, intellisense, remembers board and Arduino version per project, code completion and a super fast compiler make learning and programming Arduino faster and easier."
Downloading and VS 2015First, we need to download VS 2015 Community, you can get it here: https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
Be sure to choose the left most option button. Now for Setup of VS 2015 Community, this is an important note from the Visual Micro Site: Visual Micro requires C++ to be installed as a Visual Studio language. If you did not activate C++ when you installed Visual Studio, click "Download" and follow the instructions on that page to add C++ to your Visual Studio installation.
All three of the C++ options need to be checked off for the Visual Micro plugin to work correctly! During this installment, it will take a while, you can download the plugin, from here: http://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx The default options for the install should be fine.
Setting up VS 2015Once you have that installed you are ready to setup VS 2015. The first thing I did was turn off tutorial mode, if you leave it on, and sometimes you might want to, it creates 'Breakpoints' in your sketch. All you need to do is 'un-check' it under the Visual Micro menu option.
Next you will want to make sure you have the 'Micro' tool-bars loaded, they look like this:
If you don't have this, you'll need to 'Right-Click' some place on the existing Menu bar and make sure all 4 of the 'Micro' ones are 'Checked':
Now on to opening a new sketch, When you either select the menu option FILE>NEW>ARDUINO PROJECT
or click on the NEW button then the TEMPLATES>VISUAL C++>VISUAL MICRO
, you will be presented with this screen:
This allows for 2 options, one is a Blank sketch and the other is a Blink sketch. I choose a Blink sketch for this demo. On the right hand side of VS 2015 you should see something similar to this:
If Solution Explorer isn't selected you will need to click on the tab at the bottom to select it. Then select the Blink.ino file, it should now display in the main window. At this point it is important to note that you want to select "release" just to the left of "x86" at the very top, middle, in this screenshot.
The 'Release' option allows for actually uploading the entire sketch to your board of choice.
When you are ready to 'Upload' your version of the Blink.ino sketch, you will click on the button that looks like a PLAY button with a circle around it; far right and at the bottom of this screenshot:
That is a brief tutorial on how to setup these tools for a coding experience that is lacking in the Arduino IDE.
If you have any questions, Please comment below and I will try my best to answer them!Please note, these setup instructions assume that you already have either the Arduino.cc or Arduino.org IDE installed.
Comments