Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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