Very simple LED toggles example

Dependencies:   mbed

Committer:
lotfi_baghli
Date:
Mon Oct 18 23:58:09 2010 +0000
Revision:
0:757fc5474323
0.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lotfi_baghli 0:757fc5474323 1 #include "mbed.h"
lotfi_baghli 0:757fc5474323 2
lotfi_baghli 0:757fc5474323 3 DigitalOut myled(LED1), myled2(LED2);
lotfi_baghli 0:757fc5474323 4
lotfi_baghli 0:757fc5474323 5 int main() {
lotfi_baghli 0:757fc5474323 6 while (1) {
lotfi_baghli 0:757fc5474323 7 myled = 1;
lotfi_baghli 0:757fc5474323 8 myled2 = 0;
lotfi_baghli 0:757fc5474323 9 wait(0.2);
lotfi_baghli 0:757fc5474323 10 myled = 0;
lotfi_baghli 0:757fc5474323 11 myled2 = 1;
lotfi_baghli 0:757fc5474323 12 wait(0.2);
lotfi_baghli 0:757fc5474323 13 }
lotfi_baghli 0:757fc5474323 14 }