Gunnar Arndt
/
C027_HelloWorld_iostream
A tiny test project to determine if C++ iostream can be used in mbed projects.
Revision 0:cfc3ac2d96d6, committed 2015-11-23
- Comitter:
- guarndt
- Date:
- Mon Nov 23 18:38:50 2015 +0000
- Commit message:
- A tiny test: Can C++ iostream be used in mbed projects?
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Nov 23 18:38:50 2015 +0000 @@ -0,0 +1,12 @@ +#include <iostream> +#include <mbed.h> + +int main() { + DigitalOut led(LED); + while (true) { +// printf("%s = %d\n", str.c_str(), led.read()); + std::cout << led.read(); + led = !led; + wait(1); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 23 18:38:50 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 \ No newline at end of file