Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New users - How to test that "Arduino for Visual Studio" is installed correctly (Read 6673 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
New users - How to test that "Arduino for Visual Studio" is installed correctly
Oct 4th, 2011 at 1:49pm
Print Post  
First time users can test and understand their arduino visual studio installation as follows:-

After you have installed arduino, installed this application and opened visual studio to set your "tools>options>visual micro>arduino application location" you can test arduino in visual studio these ways:-

Method A - Create new arduino sketch

Open visual studio. Fom the "File>New" menu select "Arduino project". When prompted, enter the name of a new arduino sketch such as "MyFirstSketch". Click OK

You should see a new arduino project is created containing an arduino sketch called MyFirstSketch.pde

Add your own arduino code to the void loop() {}

Select an arduino board from the list and click "Build Solution" from the "Project" menu

You should see a successful arduino compile in the "Sketch Build" output window


Method B - Open an existing sketch

In visual studio select "File>Open" then click "Arduino Project". You will be presented with an "Open File" window which will dusplay your arduino sketch folder. Selected a sketch and click OK.

A project will be automatically created for the sketch and the arduino source codes automatically added to the project.

Add your own arduino code to the void loop() {}

Select an arduino board from the drop down list of boards and click "Build" solution from the "Project" menu

You should see a successful arduino compile in the "Sketch Build" output window


Method C - Open an existing sketch

In Visual studio selected "File>Open>File". Navigate to an arduino sketch folder and select a .pde file. Click OK

You will be asked if you would like to Open or Create a project for the arduino sketch. Click OK.

Add your own arduino code to the void loop() {}

Select an arduino board from the drop down list of boards and click "Build" solution from the "Project" menu

You should see a successful arduino compile in the "Sketch Build" output window

Method D - Manual creation of a new arduino project

In Visual Studio create a new empty C++ project called "MySketch3" in a folder called "MySketch3"

Add a new text file to the project and call it "MySketch3.pde"

Add your own arduino code to the void loop() {}

Select an arduino board from the boards list

Select an arduino board from the drop down list of boards and click "Build" solution from the "Project" menu

You should see a successful arduino compile in the "Sketch Build" output window
« Last Edit: Oct 4th, 2011 at 1:50pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint