modifide comments in Yun examples ShellCommands.ino ConsolePixel.ino
This commit is contained in:
parent
13c664ed48
commit
a1f48d22ac
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
/*
|
||||
Running shell coommands using Process class.
|
||||
Running shell commands using Process class.
|
||||
|
||||
This sketch demonstrate how to run linux shell commands
|
||||
using an Arduino Yún. It runs the wifiCheck script on the linino side
|
||||
|
@ -23,9 +23,11 @@
|
|||
#include <Process.h>
|
||||
|
||||
void setup() {
|
||||
// initialize the Bridge and Serial connections:
|
||||
Bridge.begin();
|
||||
Serial.begin(9600);
|
||||
Bridge.begin(); // Initialize the Bridge
|
||||
Serial.begin(9600); // Initialize the Serial
|
||||
|
||||
// Wait until a Serial Monitor is connected.
|
||||
while(!Serial);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
|
Loading…
Reference in New Issue