![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Clock cycle
Diff: main.cpp
- Revision:
- 0:122d7b243f18
diff -r 000000000000 -r 122d7b243f18 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jun 11 07:30:21 2015 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +DigitalOut gpo(D7); + +int main() +{ + while (true) { + gpo = !gpo; // toggle pin + wait_us(1); + } +} \ No newline at end of file