HelloWorld Blinky Program
Dependencies: mbed
Fork of LPCX824_blinky_v1 by
main.cpp
- Committer:
- rcflyair
- Date:
- 2014-12-07
- Revision:
- 0:ff88e3980956
File content as of revision 0:ff88e3980956:
#include "mbed.h" // LPCXpresso 824-MAX // Blinky hello world program will light red, green, blue led in sequence DigitalOut r(P0_12); DigitalOut g(P0_16); DigitalOut b(P0_27); int main(void) { // turn off all led's r = 1; g = 1; b = 1; while(1) { r = 0; wait_ms(250); r = 1; wait_ms(250); g = 0; wait_ms(250); g = 1; wait_ms(250); b = 0; wait_ms(250); b = 1; wait_ms(250); } }