Four LEDs are turned on and off at a constant rate.

Dependencies:   mbed

This is the first program you should try on mbed + LPC1768. Two LEDs should be attached outside of the board. Connect the longer leads of two LEDs to p22 and p23, and the shorter leads to GND.

Revision:
1:e17f76016eaa
Parent:
0:08244a723eff
--- a/multi_blinky.cpp	Sun Apr 01 04:51:36 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include "mbed.h"
-
-DigitalOut digled1(LED1), digled2(LED2);
-DigitalOut digled3(p22), digled4(p23);
-
-int main() {
-   while(1) {
-       digled1= !digled1;
-       digled2= !digled2;
-       digled3= !digled3;
-       digled4= !digled4;
-       wait(1.0);
-       } }
-