Test
Dependencies: C12832 MMA7660 RPCInterface mbed
Fork of RPC_Serial by
main.cpp
- Committer:
- R0375604
- Date:
- 2015-05-19
- Revision:
- 2:5a18ea4b4077
- Parent:
- 1:e245b0b4d96c
File content as of revision 2:5a18ea4b4077:
#include "mbed.h" //include PRPC command file #include "SerialRPCInterface.h" SerialRPCInterface SerieleInterface(USBTX, USBRX); float PWM = 0; RPCVariable<float> RPCPWM(&PWM,"PWM"); AnalogIn Pot(p20); DigitalOut myled1(LED1); int main() { while(1) { PWM = Pot; myled1 = 1; } }