FalaFam / Mbed 2 deprecated Amaldi_2_Exercise_Keyboard_Interrupt

Dependencies:   mbed

Fork of Amaldi_2_Exercise_Keyboard_Interrupt by Amaldi

Revision:
2:39c2ed3c84e3
Parent:
1:5440b3d7f435
--- a/main.cpp	Tue Jun 02 03:00:32 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include "mbed.h"
-
-Serial pc(SERIAL_TX, SERIAL_RX);
-
-void my_Interrupt(){
-    char key;
-    key = pc.getc();
-    pc.printf("Interrupted %c\r\n", key);
-}
-
-int main() {
-    pc.attach(my_Interrupt, Serial::RxIrq);
-    while(1){}
-}