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.
HostIO.cpp
00001 /* Program Example 6.8: HostIO.cpp code for modular 7-seg keyboard controller 00002 */ 00003 #include "HostIO.h" 00004 00005 Serial pc(USBTX, USBRX); // communication to host PC 00006 00007 void HostInit(void) { 00008 pc.printf("\n\rType two digit numbers to be \n\r"); 00009 } 00010 00011 char GetKeyInput(void) { 00012 char c = pc.getc(); // get keyboard ascii data 00013 pc.printf("%c",c); // print ascii value to host PC terminal 00014 return (c&0x0F); // return value as non-ascii 00015 }
Generated on Tue Jul 26 2022 08:34:23 by
1.7.2