Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RPC_Serial_new by
Revision 6:f83b71016626, committed 2014-07-27
- Comitter:
- bhavik
- Date:
- Sun Jul 27 15:44:59 2014 +0000
- Parent:
- 5:1caee8f66e14
- Commit message:
- analogin working
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-rpc.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jun 26 14:49:25 2014 +0000
+++ b/main.cpp Sun Jul 27 15:44:59 2014 +0000
@@ -5,12 +5,16 @@
int main() {
// setup the classes that can be created dynamically
- RPC::add_rpc_class<RpcAnalogOut>();
- RPC::add_rpc_class<RpcAnalogOut>();
+ RPC::add_rpc_class<RpcAnalogIn>();
+
RPC::add_rpc_class<RpcDigitalIn>();
RPC::add_rpc_class<RpcDigitalOut>();
+ RPC::add_rpc_class<RpcPwmOut>();
+
+ RpcAnalogIn rpc_ain(p19, "ain");
RpcDigitalOut rpc_led(LED1, "led");
+ RpcPwmOut rpc_pwmout(p10, "pwmout");
// receive commands, and send back the responses
char buf[256], outbuf[256];
@@ -21,3 +25,11 @@
pc.printf("%s\n", outbuf);
}
}
+/*
+void myRPCAnalogIn(Arguments* input, Reply* output){
+ output->putData(ain.read());
+ led3 = 1;
+ wait(2);
+ led3 = 0;
+}
+*/
\ No newline at end of file
--- a/mbed-rpc.lib Thu Jun 26 14:49:25 2014 +0000 +++ b/mbed-rpc.lib Sun Jul 27 15:44:59 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed-rpc/#4490a0d9cb2a +http://mbed.org/users/bhavik/code/mbed-rpc/#74c79d7abb89
