diff options
author | Fede85 <f.vanzati@gmail.com> | 2013-07-02 21:23:59 +0200 |
---|---|---|
committer | Fede85 <f.vanzati@gmail.com> | 2013-07-02 21:23:59 +0200 |
commit | a1f48d22ac570f0ded6db46c0d4eef0c7216a028 (patch) | |
tree | 198406ca75298283604d7b5bcb804ba9624da26c /libraries/Bridge/examples/ConsolePixel | |
parent | 13c664ed488cf1dfdf621d2a9f45e044a1103709 (diff) |
modifide comments in Yun examples ShellCommands.ino ConsolePixel.ino
Diffstat (limited to 'libraries/Bridge/examples/ConsolePixel')
-rw-r--r-- | libraries/Bridge/examples/ConsolePixel/ConsolePixel.ino | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libraries/Bridge/examples/ConsolePixel/ConsolePixel.ino b/libraries/Bridge/examples/ConsolePixel/ConsolePixel.ino index 4201465..c962b6e 100644 --- a/libraries/Bridge/examples/ConsolePixel/ConsolePixel.ino +++ b/libraries/Bridge/examples/ConsolePixel/ConsolePixel.ino @@ -6,7 +6,7 @@ it receives the character 'H', and turns off the LED when it receives the character 'L'. - To see the Console, pick your Yun's name and IP address in the Port menu + To see the Console, pick your Yún's name and IP address in the Port menu then open the Port Monitor. You can also see it by opening a terminal window and typing ssh root@ yourYunsName.local 'telnet localhost 6571' @@ -24,17 +24,21 @@ This example code is in the public domain. */ + #include <Console.h> const int ledPin = 13; // the pin that the LED is attached to char incomingByte; // a variable to read incoming Console data into void setup() { - // initialize Console communication: - Bridge.begin(); - Console.begin(); - while(!Console); // wait for the Console to open from the remote side + Bridge.begin(); // Initialize Bridge + Console.begin(); // Initialize Console + + // Wait for the Console port to connect + while(!Console); + Console.println("type H or L to turn pin 13 on or off"); + // initialize the LED pin as an output: pinMode(ledPin, OUTPUT); } |