Skip to content

Instantly share code, notes, and snippets.

@chrisportela
Created June 20, 2013 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisportela/5819289 to your computer and use it in GitHub Desktop.
Save chrisportela/5819289 to your computer and use it in GitHub Desktop.
Aurdino is C++ "Build Chain" v1.5.2 using Visual Micro on Visual Studio 2012
int connectionEstablished;
int counter;
void setup()
{
connectionEstablished = 0;
counter = 0;
Serial.begin(115200);
Serial.println("Initialize Channel");
do
{
if(Serial.available())
{
connectionEstablished = 1;
Serial.println("Serial Connection Established");
}
}while(connectionEstablished == 0);
}
void loop()
{
Serial.print("In the Loop");
delay(1000);
printIt();
printIt("Print it, Aurguments");
}
void printIt()
{
Serial.println("Print it, no aurguments");
}
void printIt(const char b[])
{
Serial.println(b);
}
Port open
Initialize Channel
Serial Connection Established
In the LoopPrint it, no aurguments
Print it, Aurguments
In the LoopPrint it, no aurguments
Print it, Aurguments
In the LoopPrint it, no aurguments
Print it, Aurguments
In the LoopPort closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment