![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Simple example program using semihosting for use with the WebStlink semihosting demo: https://devanlai.github.io/webstlink/demo/
Dependencies: SemihostedFileSystem mbed
main.cpp
- Committer:
- devanlai
- Date:
- 2017-10-11
- Revision:
- 0:de88d1ba9126
File content as of revision 0:de88d1ba9126:
#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); } }