Test

Dependencies:   C12832 MMA7660 RPCInterface mbed

Fork of RPC_Serial by Jonathan Caes

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 
00002 #include "mbed.h"
00003 //include PRPC command file
00004 #include "SerialRPCInterface.h"
00005 SerialRPCInterface SerieleInterface(USBTX, USBRX);
00006 
00007 
00008 float PWM = 0;
00009 
00010 RPCVariable<float> RPCPWM(&PWM,"PWM");
00011 
00012 AnalogIn Pot(p20);
00013 DigitalOut myled1(LED1);
00014 
00015 
00016 int main() 
00017 { 
00018     while(1) 
00019     {
00020         PWM = Pot;
00021         myled1 = 1;     
00022     }
00023 }