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.
Dependencies: EthernetInterface fsl_phy_mcr20a fsl_smac mbed-rtos mbed
main.cpp
- Committer:
- sam_grove
- Date:
- 2015-03-03
- Revision:
- 0:01fb291427ce
- Child:
- 1:6055c6873f85
File content as of revision 0:01fb291427ce:
// Hello world example of MCR20
#include "mbed.h"
SPI mcr20(D11, D12, D13);
DigitalOut cs(D10, 1);
DigitalOut led(LED1, 1);
Serial pc(USBTX, USBRX);
int main(void)
{
char control;
char buf[128];
while(1) {
if (pc.readable()) {
led = !led;
pc.getc();
}
//pc.scanf("%c%s\n", &control, &buf);
}
}