David Ross / Mbed 2 deprecated NEW_LAB2_A

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Lab2a.cpp Source File

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 }