This simple program enable LPC11U24 MBED board to act as a simple integer calculator. Just type the operation you want to execute from the serial terminal. Admitted operations: +, -, * /, ^ (only positive exponent). Multiple operations in raw are supported as well as negative integer.

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

Committer:
mbed_official
Date:
Tue Feb 12 17:39:05 2013 +0000
Revision:
0:879aa9d0247b
Child:
1:247161a5c5d6
Serial HelloWorld

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:879aa9d0247b 1 #include "mbed.h"
mbed_official 0:879aa9d0247b 2
mbed_official 0:879aa9d0247b 3 Serial pc(USBTX, USBRX); // tx, rx
mbed_official 0:879aa9d0247b 4
mbed_official 0:879aa9d0247b 5 int main() {
mbed_official 0:879aa9d0247b 6 pc.printf("Hello World!\n");
mbed_official 0:879aa9d0247b 7 while(1) {
mbed_official 0:879aa9d0247b 8 pc.putc(pc.getc() + 1);
mbed_official 0:879aa9d0247b 9 }
mbed_official 0:879aa9d0247b 10 }