alex Garcia Blanco
/
mbed_LandTiger_LEDS
/*Simple program to exercise the LEDs * For the LandTiger Board
main.cpp
- Committer:
- alex_G_blanco
- Date:
- 2016-03-12
- Revision:
- 0:a2e3d8ae0a8c
File content as of revision 0:a2e3d8ae0a8c:
/*Simple program to exercise the LEDs * For the LandTiger Board */ #include "mbed.h" //Create a Bus with the 8 LEDS. Pins corresponds to LD4 to LD11 BusOut LEDS(P2_7, P2_6, P2_5, P2_4, P2_3, P2_2, P2_1, P2_0); int main() { while(1) { //cycle the LEDS in bynary order for(int i=0; i<=256; i++) { //8 bits LEDS = i; //assign value to bus, turns on LEDS in hexa mode wait(0.1); //timer of the LEDS sequence } } }