Tutorial.ConsoleAsciiTable History

Hide minor edits - Show changes to markup

September 10, 2013, at 04:01 PM by Scott Fitzgerald -
Changed lines 9-10 from:
 When your Yún and computer are on the same network, you can find the Yún in the Tools>Ports menu item in the Arduino IDE. 
to:

When your Yún and computer are on the same network, you can find the Yún in the Tools>Ports menu item in the Arduino IDE.

September 02, 2013, at 12:34 PM by Federico -
Changed lines 1-2 from:

Examples > Bridge

to:

Examples > ConsoleAsciiTable

September 02, 2013, at 12:30 PM by Federico -
Changed lines 5-6 from:

This example for the Arduino Yun demonstrates how to print to the Console by generating a table of characters and their ASCII values in decimal, hexadecimal, octal, and binary. For more on ASCII, see asciitable.com.

to:

This example for the Arduino Yún demonstrates how to print to the Console by generating a table of characters and their ASCII values in decimal, hexadecimal, octal, and binary. For more on ASCII, see asciitable.com.

Changed lines 9-10 from:
 When your Yun and computer are on the same network, you can find the Yun in the Tools>Ports menu item in the Arduino IDE. 
to:
 When your Yún and computer are on the same network, you can find the Yún in the Tools>Ports menu item in the Arduino IDE. 
Changed lines 13-14 from:
  • Arduino Yun
  • computer and Yun on the same wireless network
to:
  • Arduino Yún
  • computer and Yún on the same wireless network
September 02, 2013, at 12:18 PM by Federico -
Changed lines 52-54 from:
  Console.print(thisByte, HEX);     
  Console.print(thisByte, OCT);     
  Console.println(thisByte, BIN);  
to:

Console.print(thisByte, HEX); Console.print(thisByte, OCT); Console.println(thisByte, BIN);

September 01, 2013, at 12:47 PM by Scott Fitzgerald -
Changed lines 7-10 from:

The Console is similar to the Serial monitor, except that it communicates wirelessly. When your Yun and computer are on the same network, you can find the Yun in the Tools>Ports menu item in the Arduino IDE.

When running this example, make sure your computer is on the same network as the Yun.

to:

The Console, based on Bridge, enables you to send information from the Yún to a computer just as you would with the serial monitor, but wirelessly. It creates a secure connection between the Yún and your computer via SSH.

 When your Yun and computer are on the same network, you can find the Yun in the Tools>Ports menu item in the Arduino IDE. 
September 01, 2013, at 12:44 PM by Scott Fitzgerald -
Changed line 22 from:

Include the Console library, which inherits from Bridge.

to:

Include the Console library, which inherits from Bridge.\\

Changed line 25 from:

Create a variable that will hold the value to print out to the Console window. ASCII characters of values 32 and below are invisible, so initialize the variable with a value of 33 (which corresponds to "!" ).

to:

Create a variable that will hold the value to print out to the Console window. ASCII characters of values 32 and below are invisible, so initialize the variable with a value of 33 (which corresponds to "!" ).\\

Changed line 44 from:

To see the ASCII value of the variable, you can write the byte with Console.write(). The Console interprets all bytes as ASCII characters.

to:

To see the ASCII value of the variable, you can write the byte with Console.write(). The Console interprets all bytes as ASCII characters.\\

Changed line 47 from:

Console.print() prints the value as a string of ASCII encoded decimals by default.

to:

Console.print() prints the value as a string of ASCII encoded decimals by default.\\

Changed lines 68-69 from:

If the sketch hasn't printed out all the values, increment thisByte before running through the loop() again.

to:

If the sketch hasn't printed out all the values, increment thisByte before running through the loop() again.\\

September 01, 2013, at 09:59 AM by Scott Fitzgerald -
Changed lines 7-8 from:

The Console is similar to the Serial monitor, except that it communicates wirelessly.

to:

The Console is similar to the Serial monitor, except that it communicates wirelessly. When your Yun and computer are on the same network, you can find the Yun in the Tools>Ports menu item in the Arduino IDE.

Changed lines 14-16 from:
  • computer and Yun on the same wireless or wired network

to:
  • computer and Yun on the same wireless network
Deleted line 19:
Changed lines 21-23 from:

The example code shows how it is possible to make RESTful requests to the Yun to read and write information to the pins.

You need to include the Bridge, YunServer, and YunClient libraries :

to:

Include the Console library, which inherits from Bridge. #include <Console.h>

Create a variable that will hold the value to print out to the Console window. ASCII characters of values 32 and below are invisible, so initialize the variable with a value of 33 (which corresponds to "!" ). int byte = 33;

In setup(), initialize the Bridge and Console, and wait for the port to open. Once a connection has been made, print out a small bit of information describing what is going to follow :

Changed lines 30-32 from:
  1. include <Bridge.h>
  2. include <YunServer.h>
  3. include <YunClient.h>
to:

void setup() {

  Bridge.begin();
  Console.begin(); 

  while (!Console) {
    ; // wait for Console port to connect.
  }

  Console.println("ASCII Table ~ Character Map"); 

}

Changed lines 42-46 from:
to:

In loop(), you will print the value in a number of different formats.

To see the ASCII value of the variable, you can write the byte with Console.write(). The Console interprets all bytes as ASCII characters. Console.write(thisByte);

Console.print() prints the value as a string of ASCII encoded decimals by default. Console.print(thisByte);

Console.print() and Console.println() can also send strings to the Console window that represent hexadecimal, octal, and binary number values with the appropriate modifier. Console.println() will add newline and carriage return characters to the string, creating a line break in the Console window.

Added lines 52-75:
September 01, 2013, at 09:14 AM by Scott Fitzgerald -
Changed lines 5-6 from:

This example for the Arduino Yun shows how to use the Bridge library to access the digital and analog pins on the board by through REST calls.

to:

This example for the Arduino Yun demonstrates how to print to the Console by generating a table of characters and their ASCII values in decimal, hexadecimal, octal, and binary. For more on ASCII, see asciitable.com.

The Console is similar to the Serial monitor, except that it communicates wirelessly.

August 16, 2013, at 11:38 PM by Scott Fitzgerald -
Added lines 1-133:

Share