gb.keyboard
From Gamebuino Wiki
Description
Displays a keyboard for the user to input some text.
Syntax
gb.keyboard(string, length);
Parameters
- string (char*): the string that will receive the text written by the user.
- length (byte): the maximum length of the text the user can input.
Returns
none
Example
#include <SPI.h> #include <Gamebuino.h> Gamebuino gb; char text[13] = "Default text"; void setup(){ gb.begin(F("Keyword example")); gb.keyboard(text, 12); } void loop(){ if(gb.update()){ gb.display.println(F("You wrote:")); gb.display.println(text); } }