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.
lab2_a.cpp
- Committer:
- DavidRoss
- Date:
- 2020-08-27
- Revision:
- 6:ea16d44e35a2
- Parent:
- 5:5cdf88fb4887
File content as of revision 6:ea16d44e35a2:
/*
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.
*/
#define "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>
}
}