David Cabinian
/
RPC_DigitalInDigitalOutPWMOutoverSerial
A RPC example usage program.
Fork of RPC_Serial by
Revision 7:d72b60abcab5, committed 2016-03-15
- Comitter:
- dhcabinian
- Date:
- Tue Mar 15 05:11:46 2016 +0000
- Parent:
- 6:cb40d6349b96
- Commit message:
- Changed from AnalogIN to DigitalIn;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cb40d6349b96 -r d72b60abcab5 main.cpp --- a/main.cpp Tue Mar 15 05:10:51 2016 +0000 +++ b/main.cpp Tue Mar 15 05:11:46 2016 +0000 @@ -8,7 +8,7 @@ //Use the RPC enabled wrapped class - see RpcClasses.h for more info RpcDigitalOut mbedled(LED1,"mbedled"); -RpcAnalogIn sw(p8, "switch"); +RpcDigitalIn sw(p8, "switch"); RpcPwmOut led(p21, "pwmled"); Serial pc(USBTX, USBRX);