Arduino Terminal Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Arduino terminal on smartphone via 1Sheeld

Turn your smart phone into a terminal and display the data from Arduino to your screen!

This shield is one of the special shields. Special shields allows your Arduino board to use some capabilities your smartphone can do, like playing music, taking a picture, getting notifications, accessing the clock data and using the touch screen for various functions.Learn more from the special shields tutorial.

Terminal library simulates a serial terminal on your smartphone so that you can display any serial data on it even data of the 1Sheeld sensors shields.

Adding #define CUSTOM_SETTINGS along with #define INCLUDE_TERMINAL_SHIELD is a key that will let you unlock the Terminal shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.

int available(void)

Checks if there’s available data in buffer.

 

SYNTAX
Terminal.avialable();

 

RETURNS
Returns an integer holding the number of characters in the buffer.

 

PARAMETERS
None.

 

USAGE
Terminal.available();

 

char read(void)

Reads a single character exists in buffer.

 

SYNTAX
Terminal.read();

 

RETURNS
Returns a char holding the character data.

 

PARAMETERS
None.

 

USAGE
Terminal.read();

 

int readBytes(char *,int)

Reads certain number of bytes stored in the buffer.

 

SYNTAX
Terminal.readBytes(arrayToBeFilled,numberofDataToBeRead);

 

RETURNS
Returns an integer holding the number of characters that been read.

 

PARAMETERS
– 1st Parameter takes char array to fill it with characters.
– 2nd Parameter takes an integer holding the number to loop on.

 

USAGE
char myArray[10];
Terminal.readBytes(myArray,10);

 

void flush(void)

Erases the data in the buffer.

 

SYNTAX
Terminal.flush();

 

RETURNS
None.

 

PARAMETERS
None.

 

USAGE
Terminal.flush();

 

void write(char)

Writes a single character to be displayed.

 

SYNTAX
Terminal.write(character);

 

RETURNS
None.

 

PARAMETERS
Takes a char holding the character to be displayed.

 

USAGE
Terminal.char('A');

 

void print(char)

Prints a single character to be displayed.

 

SYNTAX
Terminal.print(character);

 

RETURNS
None.

 

PARAMETERS
Takes a char holding the character to be displayed.

 

USAGE
Terminal.print('A');

 

void print(int)

Prints numbers to be displayed.

 

SYNTAX
Terminal.print(number);

 

RETURNS
None.

 

PARAMETERS
Takes an integer holding the number to be displayed.

 

USAGE
Terminal.print(-10);

 

void print(unsigned int)

Prints numbers to be displayed.

 

SYNTAX
Terminal.print(number);

 

RETURNS
None.

 

PARAMETERS
Takes an unsigned integer holding the number to be displayed.

 

USAGE
Terminal.print(10);

 

void print(long)

Prints numbers to be displayed.

 

SYNTAX
Terminal.print(number);

 

RETURNS
None.

 

PARAMETERS
Takes a long integer holding the number to be displayed.

 

USAGE
Terminal.print(-452235);

 

void print(unsigned long)

Prints numbers to be displayed.

 

SYNTAX
Terminal.print(number);

 

RETURNS
None.

 

PARAMETERS
Takes a unsigned long integer holding the number to be displayed.

 

USAGE
Terminal.print(452235);

 

void print(char *)

Prints texts onto the display.

 

SYNTAX
Terminal.print(arrayOfBytes);

 

RETURNS
None.

 

PARAMETERS
Takes a char array holding the text to be displayed.

 

USAGE
Terminal.print("asds");

 

void print(String)

Prints a texts onto the display.

 

SYNTAX
Terminal.print(arrayOfBytes);

 

RETURNS
None.

 

PARAMETERS
Takes a string object holding the text to be displayed.

 

USAGE
String message = “messageBody”;
Terminal.print(message)

 

void print(double)

Prints numbers as fractions onto the display.

 

SYNTAX
Terminal.print(fraction);

 

RETURNS
None.

 

PARAMETERS
Takes a double holding the fraction to be displayed.

 

USAGE
Terminal.print(0.1235)