Testprogramm für BERTL 2014, der BULME Graz/Gösting. Die LEDs D10-D13 blinken der Reihe nach auf, danach wird noch die RGB angesteuert
Fork of BERTL14_BLINK by
Revision 0:0c7182a944d4, committed 2014-05-07
- Comitter:
- bulme_rai
- Date:
- Wed May 07 09:56:05 2014 +0000
- Commit message:
- Testprogramm f?r BERTL2014, der BULME Graz/G?sting; Die LEDs D10-D13 blinken der Reihe nach auf, danach wird noch die RGB angesteuert
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 0c7182a944d4 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 07 09:56:05 2014 +0000 @@ -0,0 +1,50 @@ +/*********************************** +name: BERTL14_BLINK +author: Wolfgang Raimann +email: rai@bulme.at +description: + Die LEDs D10-D13 blinken der Reihe nach auf, danach wird noch die RGB angesteuert +***********************************/ + +#include "mbed.h" + +DigitalOut Dio10(LED1); +DigitalOut Dio11(LED2); +DigitalOut Dio12(LED3); +DigitalOut Dio13(LED4); +DigitalOut RGB_G(p26); +DigitalOut RGB_B(p25); +DigitalOut RGB_R(p14); + +int main() { + while(1) { + Dio10 = 1; + Dio11 = Dio12 = Dio13 = 0; + RGB_R = RGB_G = RGB_B = 1; + wait(0.2); + Dio11 = 1; + Dio10 = Dio12 = Dio13 = 0; + RGB_R = RGB_G = RGB_B = 1; + wait(0.2); + Dio12 = 1; + Dio10 = Dio11 = Dio13 = 0; + RGB_R = RGB_G = RGB_B = 1; + wait(0.2); + Dio13 = 1; + Dio10 = Dio11 = Dio12 = 0; + RGB_R = RGB_G = RGB_B = 1; + wait(0.2); + RGB_R = 0; + Dio10 = Dio11 = Dio12 = Dio13 = 0; + RGB_G = RGB_B = 1; + wait(1); + RGB_G = 0; + Dio10 = Dio11 = Dio12 = Dio13 = 0; + RGB_R = RGB_B = 1; + wait(1); + RGB_B = 0; + Dio10 = Dio11 = Dio12 = Dio13 = 0; + RGB_R = RGB_G = 1; + wait(1); + } +}
diff -r 000000000000 -r 0c7182a944d4 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 07 09:56:05 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776 \ No newline at end of file