Created
June 20, 2013 00:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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