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.
Lab2a.cpp
00001 /* 00002 Title: Program to generate output to the PC screen 00003 Author: Your NAME, STUDENT_ID, MCO455 Lab Section 00004 Date: Today's Date 00005 Description: This program will take characters from the keyboard and 00006 continually send them to the screen. You can use ANSI 00007 ESCAPE sequences to position the cursor, clear the 00008 screen, and change screen foreground and background 00009 colours. 00010 */ 00011 #define "mbed.h" 00012 00013 int main(void) 00014 { 00015 unsigned char input; 00016 00017 for(;;) 00018 { 00019 input=getc(stdin); // get char and put into variable input 00020 // if(input == 0x0d) // if input is <RETURN> 00021 // putc(0x0a,stdout); // output a <LINE FEED> 00022 00023 00024 } 00025 }
Generated on Sun Aug 7 2022 18:10:14 by
1.7.2