Keyboard Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Smartphone as keyboard input to Arduino via 1Sheeld

Use your smartphone touch screen as a keyboard. This shield gives you the advantage to send ASCII characters to
your Arduino and trigger certain actions written in your sketch. Learn more from the examples page.

This shield is one of the I/O shields. I/O shields provides simple function of using your smartphone as input or output to Arduino. Learn more from the I/O shields tutorial.

Keyboard Library converts your smartphone to an Ascii keyboard so that you can send characters one by one to Arduino and take actions.

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

Gets a certain character from the application.

SYNTAX

AsciiKeyboard.getCharacter( );

RETURNS

character in type “char” pressed on the application’s keyboard.

PARAMETERS

None.

USAGE

char pressedCharacter = AsciiKeyboard.getCharacter();

Sets a certain individual function written by the user in the sketch to be called and runs its functionality once a new char is pressed on the application’s keyboard.

SYNTAX

AsciiKeyboard.setOnButtonChange(&userFunctionName);

RETURNS

None.

PARAMETERS

&userFunctionName: takes the physical address of the userFunction in the memory and jump to it once called to execute it’s functionality.

USAGE

AsciiKeyboard.setOnButtonChange(&myFunction);
/* myFunction exists under the loop function. */
/* This function will be invoked each time a new button is pressed in the Keyboard. */
void myFunction (char pressedCharacter)
{
    /*Turn On the LED if ‘A’ else turn Off. */
    if(pressedCharacter == ‘A’)
    {
        digitalWrite(pin13,HIGH);
    }
    else
    {
        digitalWrite(pin13,LOW);
    }
}