example serial interface for python and LPC11U24 - analogin and pwm working

Dependencies:   mbed-rpc mbed

Fork of RPC_Serial_new by bhavik gala

Revision:
5:1caee8f66e14
Parent:
4:726b4e996614
Child:
6:f83b71016626
--- a/main.cpp	Fri Jun 20 16:02:35 2014 +0000
+++ b/main.cpp	Thu Jun 26 14:49:25 2014 +0000
@@ -5,18 +5,12 @@
 
 int main() {
     // setup the classes that can be created dynamically
-    RPC::add_rpc_class<RpcAnalogIn>();
+    RPC::add_rpc_class<RpcAnalogOut>();
     RPC::add_rpc_class<RpcAnalogOut>();
     RPC::add_rpc_class<RpcDigitalIn>();
     RPC::add_rpc_class<RpcDigitalOut>();
-    RPC::add_rpc_class<RpcDigitalInOut>();
-    RPC::add_rpc_class<RpcPwmOut>();
-    RPC::add_rpc_class<RpcTimer>();
-    RPC::add_rpc_class<RpcSPI>();
-    RPC::add_rpc_class<RpcBusOut>();
-    RPC::add_rpc_class<RpcBusIn>();
-    RPC::add_rpc_class<RpcBusInOut>();
-    RPC::add_rpc_class<RpcSerial>();    
+    
+    RpcDigitalOut rpc_led(LED1, "led");
     
     // receive commands, and send back the responses
     char buf[256], outbuf[256];