Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 */
Generated on Sun Jul 24 2022 02:35:24 by
1.7.2