A test of creating custom classes for control over RPC. Creates an LED class with member functions callable over serial.

Dependencies:   mbed

Revision:
2:fe4c1d5a97fa
Parent:
1:ddf1739fcbb8
Child:
3:d70703d85ff9
--- a/main.cpp	Wed Sep 29 01:20:59 2010 +0000
+++ b/main.cpp	Wed Sep 29 01:32:32 2010 +0000
@@ -34,7 +34,11 @@
 #include "rpc.h"
 
 
-/*LED class definition*/
+/**Class: LED
+*
+*attached to an LED pin, contains simple blink functionality over serial
+*
+*/
 
 class LED :public Base { //make sure to define the class with inheritance from the Base RPC class.
 public:
@@ -114,7 +118,6 @@
 Serial pc(USBTX, USBRX); //set up serial communication
 /**Wait for RPC commands and then call the interpreter**/
 int main() {   
-
     // specify which classes we would like to be able to call over LED
     Base::add_rpc_class<Timer>();  //a class included in the core mbed RPC library
     Base::add_rpc_class<LED>();    //my own custom LED class