A RPC example usage program.

Dependencies:   mbed-rpc mbed

Fork of RPC_Serial by Michael Walker

Revision:
4:d69dfbef9644
Parent:
3:4ddd10908e46
Child:
5:59421f613a13
--- a/main.cpp	Thu Aug 14 09:25:00 2014 +0000
+++ b/main.cpp	Sat Mar 12 02:30:33 2016 +0000
@@ -3,11 +3,13 @@
 
 /**
  *  This example program has been updated to use the RPC implementation in the new mbed libraries.
- *  This example demonstrates using RPC over serial
+ *  This example demonstrates using RPC over serial with DigitalOut, DigitalIn, and PWMOut usages
  */
 
 //Use the RPC enabled wrapped class  - see RpcClasses.h for more info
-RpcDigitalOut myled(LED4,"myled");
+RpcDigitalOut   myled(LED4,"mbedled");
+RpcDigitalIn    swIn(p8, "switchIn");
+RpcPwmOut       led(p21, "pwmled");
 
 Serial pc(USBTX, USBRX);
 int main() {
@@ -21,4 +23,4 @@
         RPC::call(buf, outbuf); 
         pc.printf("%s\n", outbuf);
     }
-}
+}
\ No newline at end of file