Jannis Marinitsch
/
Maskieren
Maskieren der 8 LEDs
Diff: main.cpp
- Revision:
- 0:4580f98ab3e1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 11 16:00:05 2016 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +#define LED_MASK 0x000030DB + +PortOut ledport(Port1, LED_MASK); + +int main() { + while(1) { + ledport = LED_MASK; + wait(0.2); + ledport = 0; + wait(0.2); + } +}