by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"

Dependencies:   mbed

Committer:
robt
Date:
Fri Aug 31 15:20:19 2012 +0000
Revision:
0:241d9ee41621
by Rob Toulson and Tim Wilmshurst from textbook "Fast and Effective Embedded Systems Design: Applying the ARM mbed"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robt 0:241d9ee41621 1 /* Program Example 2.1: Simple LED flashing
robt 0:241d9ee41621 2 */
robt 0:241d9ee41621 3 #include "mbed.h"
robt 0:241d9ee41621 4 DigitalOut myled(LED1);
robt 0:241d9ee41621 5 int main()
robt 0:241d9ee41621 6 {
robt 0:241d9ee41621 7 while(1) {
robt 0:241d9ee41621 8 myled = 1;
robt 0:241d9ee41621 9 wait(0.2);
robt 0:241d9ee41621 10 myled = 0;
robt 0:241d9ee41621 11 wait(0.2);
robt 0:241d9ee41621 12 }
robt 0:241d9ee41621 13 }