Clock cycle

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut gpo(D7);
00004 
00005 int main()
00006 {
00007     while (true) {
00008         gpo = !gpo; // toggle pin
00009         wait_us(1);
00010     }
00011 }