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: SemihostedFileSystem mbed
main.cpp
- Committer:
- devanlai
- Date:
- 2017-10-11
- Revision:
- 1:87b03b7531a3
- Parent:
- 0:de88d1ba9126
File content as of revision 1:87b03b7531a3:
#include "mbed.h"
#include "SemihostedFileSystem.h"
DigitalOut led(LED1);
int main()
{
SemihostedFileHandle semi_stdout(":tt", O_WRONLY);
int i = 0;
while(1) {
semi_stdout.printf("Hello world %d\n", i++);
led = (i % 2);
wait_ms(1000);
}
}