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.
Returns a char when pressed on the application’s keyboard.
&userFunctionName: takes the physical address of the userFunction in the memory and jump to it once called to execute it’s functionality.
/* 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’)