Nathan Whitaker / Mbed 2 deprecated TestRPC

Dependencies:   mbed

main.cpp

Committer:
NathanWhitaker
Date:
2011-07-04
Revision:
0:9777c29c1214

File content as of revision 0:9777c29c1214:

#include "mbed.h"
#include "rpc.h"
#include "SerialRPCInterface.h"
#include "Header.hpp"


SerialRPCInterface RPC(USBTX, USBRX);

RPCFunction L1_On(&LED1_ON, "LED1_On");
RPCFunction L2_On(&LED2_ON, "LED2_On");
RPCFunction L3_On(&LED3_ON, "LED3_On");
RPCFunction L4_On(&LED4_ON, "LED4_On");
RPCFunction L1_Off(&LED1_OFF, "LED1_Off_LONG");
RPCFunction L2_Off(&LED2_OFF, "LED2_Off_LONG");
RPCFunction L3_Off(&LED3_OFF, "LED3_Off_LONG");
RPCFunction L4_Off(&LED4_OFF, "LED4_Off_LONG_NAME");



int main() {
    while (1) {
        L1 = 1;
        wait(0.25);
        L1 = 0;
        wait(0.25);
        L1 = 1;
        wait(0.25);
        L1 = 0;
        wait(0.25);

    }
}