Terminal Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Arduino terminal on smartphone via 1Sheeld
Turn your smart phone into a terminal and get the data from Arduino to your screen! Learn more from the examples page.
 
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.

Note: (println) can replace (print) in all functionalities except it inserts a new carriage and a new line after the data.

Checks if there’s available data in buffer.

SYNTAX

Terminal.avialable( );

RETURNS

A yes “1” or no “0” .

PARAMETERS

None.

USAGE

Terminal.available();

Reads a single character exists in buffer.

SYNTAX

Terminal.read( );

RETURNS

character type data.

PARAMETERS

None.

USAGE

Terminal.read();

Reads certain number of bytes stored in the buffer.

SYNTAX

Terminal.readBytes(arrayToBeFilled ,numberofDataToBeRead);

RETURNS

A yes “1” or no “0” as an acknowledgement that the process had finished.

PARAMETERS

1st Parameter takes an pointer to an array of char.

2nd Parameter takes number to loop on.

USAGE

char* myArray;
Terminal.read(myArray,10);

Erases the data in the buffer.

SYNTAX

Terminal.flush( );

RETURNS

None.

PARAMETERS

None.

USAGE

Terminal.flush();

Writes a single character to be displayed.

SYNTAX

Terminal.write(singleCharacterToBeDisplayed);

RETURNS

None.

PARAMETERS

Takes a char to be displayed.

USAGE

Terminal.write(‘A’);

Writes a single character to be displayed.

SYNTAX

Terminal.print(singleCharacterToBeDisplayed);

RETURNS

None.

PARAMETERS

Takes character to be displayed.

USAGE

Terminal.print(‘A’);

Writes a signed integer to be displayed.

SYNTAX

Terminal.print(signedNumber , baseOfNumber);

Note: signed number can hold  from −32767 to +32767

RETURNS

None.

PARAMETERS

1st Parameter takes the number to be displayed.

2nd Parameter takes the base of number “default is decimal(10)”.

USAGE

Terminal.print(-1234);

Writes a unsigned integer to be displayed.

SYNTAX

Terminal.print(unsignedNumber , baseOfNumber);

Note: unsigned number can hold from 0 to 65535.

RETURNS

None.

PARAMETERS

1st Parameter takes the number to be displayed.

2nd Parameter takes the base of number “default is decimal(10)”.

USAGE

Terminal.print(1234);

Writes a long integer to be displayed.

SYNTAX

Terminal.print( longNumber , baseOfNumber);

Note: long signed number can hold from −2147483647,+2147483647.

RETURNS

None.

PARAMETERS

1st Parameter takes the long integer number to be displayed.

2nd Parameter takes the base of number “default is decimal(10)”.

USAGE

Terminal.print(1234);

Writes a unsigned long integer to be displayed.

SYNTAX

Terminal.print( unsignedLongNumber , baseOfNumber);

Note: unsigned long number can hold from 0 to 4294967294.

RETURNS

None.

PARAMETERS

1st Parameter takes the unsigned long integer number to be displayed.

2nd Parameter takes the base of number “default is decimal(10)”.

USAGE

Terminal.print(1234);

Print out texts.

SYNTAX

Terminal.print( mesageToBeDisplayed);

RETURNS

None.

PARAMETERS

Takes text as array of char.

USAGE

Terminal.print(“messageBody”);

Print out texts.

SYNTAX

Terminal.print( mesageToBeDisplayed);

RETURNS

None.

PARAMETERS

Takes text as String object.

USAGE

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

Prints out fractionated number with a precision.

SYNTAX

Terminal.print( fractionNumber,precisionOfFraction);

RETURNS

None.

PARAMETERS

1st Parameter takes fractioned number.

2nd Parameter takes the precision of the fraction.

USAGE

Terminal.print(12.568,2);