gj

Dependencies:   mbed

Committer:
omarlin
Date:
Fri Oct 02 11:30:52 2015 +0000
Revision:
0:0a756c4e57de
heg;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
omarlin 0:0a756c4e57de 1 #include "mbed.h"
omarlin 0:0a756c4e57de 2
omarlin 0:0a756c4e57de 3 DigitalOut gpo(D0);
omarlin 0:0a756c4e57de 4 DigitalOut led(LED_RED);
omarlin 0:0a756c4e57de 5
omarlin 0:0a756c4e57de 6 int main()
omarlin 0:0a756c4e57de 7 {
omarlin 0:0a756c4e57de 8 while (true) {
omarlin 0:0a756c4e57de 9 gpo = !gpo; // toggle pin
omarlin 0:0a756c4e57de 10 led = !led; // toggle led
omarlin 0:0a756c4e57de 11 wait(0.2f);
omarlin 0:0a756c4e57de 12 }
omarlin 0:0a756c4e57de 13 }