David Ross / Mbed 2 deprecated lab2a_errors

Dependencies:   mbed

lab2_a.cpp

Committer:
DavidRoss
Date:
2020-08-21
Revision:
1:6e1ddcab9b76
Parent:
0:94a2d885c9bb
Child:
2:caa3c6d6d37e

File content as of revision 1:6e1ddcab9b76:

/*
    Title:  Program to generate output to the PC screen
    Author: Your Name, Student ID, Course CODE, Lab Section
    Date:   Today's Date
    Description:    This program will take characters from the keyboard and
                    continually send them to the screen. You can use ANSI
                    ESCAPE sequences to position the cursor, clear the
                    screen, and change screen foreground and background
                    colours.
*/
#include "mbed.h"
 
int main(void)
{
    unsigned char input;    // variable to get char from keyboard

    for(;;) {
        input=getc(stdin);      // get char and put into variable input
        //  if(input == 0x0d)     // if input is <RETURN>
        //  putc(0x0a,stdout);    // output a <LINE FEED>
    }
}