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.
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);
}
}