Armand Coetzer / F7_TSKeyboard

Fork of F7_TSKeypad_MultiKey by Armand Coetzer

Embed: (wiki syntax)

« Back to documentation index

F7_TSKeyboard Class Reference

F7_TSKeyboard Class Reference

Class library for a TS Keyboard, then press enter and the values are stored and the keyboard disappears. More...

#include <F7_TSKeyboard.h>

Public Member Functions

 F7_TSKeyboard ()
 Constructor.
void getkeys (char str[])
 Retrieves the keys selected as a string.

Detailed Description

Class library for a TS Keyboard, then press enter and the values are stored and the keyboard disappears.

Example:

 *#include "mbed.h"
 *#include "F7_TSKeyboard.h"

 *F7_TSKeyboard keyboard;
 *LCD_DISCO_F746NG lcd;

 *uint8_t text1[30];
 *char s[100];

 *int main() 
 *{    
    lcd.SetFont(&Font12);
    lcd.Clear(LCD_COLOR_BLUE);
    lcd.SetBackColor(LCD_COLOR_BLUE);
    lcd.SetTextColor(LCD_COLOR_WHITE);  
 
    while(1)
    {
        keyboard.getkeys(s);
        
        sprintf((char*)text1, "%s", s);
        lcd.DisplayStringAt(0, LINE(3), (uint8_t *)&text1, LEFT_MODE);   
         
        wait(1);  
    }
 *}

Definition at line 65 of file F7_TSKeyboard.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 4 of file F7_TSKeyboard.cpp.


Member Function Documentation

void getkeys ( char  str[] )

Retrieves the keys selected as a string.

Parameters:
str[]- stores the keys selected in this array.
Return values:
None.

Definition at line 400 of file F7_TSKeyboard.cpp.