Tran Rick / Mbed 2 deprecated LORA_Keyboard_INPUT

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Getkeyinput.cpp Source File

Getkeyinput.cpp

00001 
00002 #include "keyboard.h"
00003  // communication to host PC
00004 
00005 void inputkey(void){
00006    pc.printf(" control key input: "); 
00007     }
00008  //void inputkey1(void){
00009  //   pc.printf("Control speed 1 or 0");
00010    //www }
00011  
00012 
00013 
00014 // Get key input for Direction 
00015  char GetkeyInput(void){
00016      char keyinput = pc.getc(); //get keyboard ascii data 
00017      pc.printf("%c\r\n",keyinput ); //print ascii value to Pc terminal
00018      return (keyinput); // return value as non-ascii
00019      }
00020 /*
00021 // Get key input for speed should
00022  int GetkeyInput1(void){
00023      int keyinput1 = pc.getc(); //get keyboard ascii data 
00024      pc.printf("%c\r\n",keyinput1 ); //print ascii value to Pc terminal
00025      return (keyinput1); // return value as non-ascii
00026 
00027     }
00028 */